Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type User ¶
type User struct { ID string `json:"id"` Email string `json:"email,omitempty"` Organizations []string `json:"organizations,omitempty"` Roles []string `json:"roles,omitempty"` Active bool `json:"active"` Namespaces []string `json:"namespaces"` }
User holds the user data retrieved from the User API.
type UserAPI ¶
type UserAPI interface { // FindUser performs a lookup for a user by its email and password. FindUser(email, password string) (*User, error) }
UserAPI defines operations for interacting with the User service API.
type UserAPIClient ¶
type UserAPIClient struct { // UserServiceURL is the base URL of the user microservice. This should be the API gateway exposed URL. UserServiceURL string // KeyStore is a reference to the store.KeyStore used for loading private keys store.KeyStore // Config is the microservice configuration *config.Config // Client is a HTTP clien implementation used for access to the user microservice *http.Client }
UserAPIClient holds the data for the user microservice client
Click to show internal directories.
Click to hide internal directories.