Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNoUser = errors.New("no user")
ErrNoUser is the error given when attempting to remove a user that does not exist within the organization.
Functions ¶
Types ¶
type HTTPClient ¶
type HTTPClient interface {
Do(ctx context.Context, method, uri string, body, out interface{}) error
}
The HTTPClient interface describes types that perform HTTP requests.
type User ¶
type User struct { ID string `json:"user_id"` Email string `json:"email"` Roles []string `json:"roles"` }
The User type describes a user within an organization and their roles within it.
Click to show internal directories.
Click to hide internal directories.