Versions in this module Expand all Collapse all v0 v0.8.0 Apr 26, 2018 v0.7.8 Apr 19, 2018 v0.7.7 Apr 18, 2018 Changes in this version + func NewRouter(dummyService *Service) http.Handler + type Config struct + Datastore *dsc.Config + Port int + func NewConfig(port int, config *dsc.Config) *Config + func NewConfigFromURL(URL string) (*Config, error) + type Dummy struct + Id int + Name string + Type *DummyType + TypeId *int + type DummyType struct + Id int + Name string + type FindRequest struct + Id int + type FindResponse struct + Data *Dummy + type GetRequest struct + Id int + type GetResponse struct + Data []*Dummy + type GetTypeRequest struct + Id int + type GetTypeResponse struct + Data []*DummyType + type PersistRequest struct + Data *Dummy + type PersistResponse struct + Data *Dummy + type Response struct + Error string + Status string + StatusCode *int + func NewResponse() *Response + func (r *Response) GetStatusCode() int + func (r *Response) SetError(err error) + type Router struct + type Server struct + func NewServer(service *Service, port int) *Server + func (s *Server) Stop() + func (s *Server) StopOnSiginals(siginals ...os.Signal) + type Service struct + DbConfig *dsc.Config + func New(config *dsc.Config) (*Service, error) + func (s *Service) Find(request *FindRequest) *FindResponse + func (s *Service) GetAll(request *GetRequest) *GetResponse + func (s *Service) GetAllTypes(request *GetTypeRequest) *GetTypeResponse + func (s *Service) Handle(request *http.Request, writer http.ResponseWriter) + func (s *Service) Persist(request *PersistRequest) *PersistResponse