Genera: router & models

This commit is contained in:
Matthew Dillon 2014-10-13 09:23:02 -08:00
parent 08ae818d74
commit 9155ee88f1
5 changed files with 258 additions and 4 deletions
models

View file

@ -16,7 +16,8 @@ import (
// A Client communicates with bactdb's HTTP API.
type Client struct {
Users UsersService
Users UsersService
Genera GeneraService
// BaseURL for HTTP requests to bactdb's API.
BaseURL *url.URL
@ -45,6 +46,7 @@ func NewClient(httpClient *http.Client) *Client {
httpClient: httpClient,
}
c.Users = &usersService{c}
c.Genera = &generaService{c}
return c
}