diff options
Diffstat (limited to 'db/db.go')
| -rw-r--r-- | db/db.go | 3 | 
1 files changed, 3 insertions, 0 deletions
| @@ -41,6 +41,7 @@ type Model interface {  	GetSchemaVersion() (int, error)  	CreateUser(username, password string) (User, error) +	SetPassword(user User, password string) error  	AuthenticateUser(username, password string) (User, error)  	GetById(id string) (User, error)  	AllUsers() ([]User, error) @@ -53,6 +54,8 @@ type Model interface {  	CreateEndpoint(name, path, address string) (Endpoint, error)  	DeleteEndpoint(endpoint Endpoint) error +	SetEndpointPath(endpoint Endpoint, path string) error +	SetEndpointAddress(endpoint Endpoint, address string) error  	GetEndpointByName(name string) (Endpoint, error)  	GetEndpointByPath(path string) (Endpoint, error)  	GetEndpointByAddress(address string) (Endpoint, error) | 
