Documentation
¶
Index ¶
- Variables
- type Option
- type UsersClient
- func (c UsersClient) AssociatePlayer(ctx context.Context, id user.ID, req user.AssociatePlayer) (*user.User, error)
- func (c UsersClient) Create(ctx context.Context, req user.Create) (*user.User, error)
- func (c UsersClient) Get(ctx context.Context, id user.ID) (*user.User, error)
- func (c UsersClient) List(ctx context.Context, filter user.Filter) ([]*user.User, error)
- func (c UsersClient) Remove(ctx context.Context, id user.ID) error
- func (c UsersClient) Update(ctx context.Context, id user.ID, req user.Update) (*user.User, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrClient = errors.New("users client api failed")
)
Functions ¶
This section is empty.
Types ¶
type Option ¶
type Option interface {
// contains filtered or unexported methods
}
Option provides options for configuring the creation of a users client.
func WithTLSConfig ¶
WithTLSConfig sets the http client's tls config.
func WithTimeout ¶
WithTimeout sets the client timeout.
type UsersClient ¶
type UsersClient struct {
// contains filtered or unexported fields
}
UsersClient provides a client for the users api.
func New ¶
func New(baseURL string, opts ...Option) (*UsersClient, error)
New returns a new client for the users api.
func (UsersClient) AssociatePlayer ¶
func (c UsersClient) AssociatePlayer(ctx context.Context, id user.ID, req user.AssociatePlayer) (*user.User, error)
AssociatePlayer associates a player with the given user.
Click to show internal directories.
Click to hide internal directories.