Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthToken ¶
type AuthToken interface {
Create(*lara.User) (string, error)
Parse(token string) (*lara.User, error)
}
AuthToken is authentication token provider/validator
type Server ¶
type Server struct {
// Services
OwnerService lara.OwnerService
PatientSevice lara.PatientService
RecordService lara.RecordService
SearchService lara.SearchService
UserService lara.UserService
ProductService lara.ProductService
ReportService lara.ReportService
TitleService lara.TitleService
UnitService lara.UnitService
GenderService lara.GenderService
SpeciesService lara.SpeciesService
BreedService lara.BreedService
AddressService lara.AddressService
TagService lara.TagService
// Auth
Token AuthToken
// WWW root
WWWRoot string
// contains filtered or unexported fields
}
Server server REST API and client web application
func (*Server) Router ¶
Router configures and returns URL router for http server. Method is not intended to be called directly except for unit tests.
Click to show internal directories.
Click to hide internal directories.