Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func StartServer ¶
StartServer starts interests web service
Types ¶
type GetByIDResponse ¶
GetByIDResponse represents get by id response.
type GetByIDsResponse ¶
GetByIDsResponse represents a get by ids response.
type Interest ¶
type Interest struct { ID int `autoincrement:"true"` Name string Category string Status *bool `valueMap:"yes:true,no:false"` GroupName string `transient:"true"` }
Interest represents an generic interest.
type InterestService ¶
type InterestService interface { //GetById returns interest by id GetByID(id int) *GetByIDResponse //GetByIds returns interests by passed in ids GetByIDs(id ...int) *GetByIDsResponse //PersistTable persists passed in interests Persist(interests []*Interest) *PersistResponse //DeleteById deletes interestes by id. DeleteByID(id int) *Response }
InterestService a test service
func NewInterestService ¶
func NewInterestService(configURL string) (InterestService, error)
NewInterestService creates a new interests service
func NewInterestServiceClient ¶
func NewInterestServiceClient(server string) InterestService
NewInterestServiceClient creates a new InterestService client
type PersistResponse ¶
PersistResponse represents a persist response.
Click to show internal directories.
Click to hide internal directories.