Documentation ¶
Index ¶
- func MakeSignCreateAgentTokenEndpoint(s Service) endpoint.Endpoint
- func MakeSignCreateUserEndpoint(s Service) endpoint.Endpoint
- func MakeSignDeleteAgentTokenEndpoint(s Service) endpoint.Endpoint
- func MakeSignDeleteUserByIDEndpoint(s Service) endpoint.Endpoint
- func MakeSignGetUserByIDEndpoint(s Service) endpoint.Endpoint
- func MakeSignLoginEndpoint(s Service) endpoint.Endpoint
- func MakeSignLogoutEndpoint(s Service) endpoint.Endpoint
- func MakeSignValidateTokenEndpoint(s Service) endpoint.Endpoint
- type Endpoints
- func (e Endpoints) CreateAgentToken(ctx context.Context, name string) (*user.AgentToken, error)
- func (e Endpoints) CreateUser(ctx context.Context, username string, password string, email string) (*user.User, error)
- func (e Endpoints) DeleteAgentToken(ctx context.Context, name string) error
- func (e Endpoints) DeleteUserByID(ctx context.Context, id user.UserID) error
- func (e Endpoints) GetUserByID(ctx context.Context, id user.UserID) (*user.User, error)
- func (e Endpoints) Login(ctx context.Context, username string, password string) (*user.User, error)
- func (e Endpoints) Logout(ctx context.Context, id user.UserID) error
- func (e Endpoints) ValidateToken(ctx context.Context) (*user.User, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MakeSignLoginEndpoint ¶
func MakeSignLogoutEndpoint ¶
Types ¶
type Endpoints ¶
type Endpoints struct { SignCreateUserEndpoint endpoint.Endpoint SignDeleteUserByIDEndpoint endpoint.Endpoint SignGetUserByIDEndpoint endpoint.Endpoint SignLoginEndpoint endpoint.Endpoint SignLogoutEndpoint endpoint.Endpoint SignCreateAgentTokenEndpoint endpoint.Endpoint SignDeleteAgentTokenEndpoint endpoint.Endpoint SignValidateTokenEndpoint endpoint.Endpoint }
func MakeClientEndpoints ¶
func MakeClientEndpoints( instance string, encodeRequestFactory jhttptransport.EncodeRequestFuncMiddleware, decodeResponseFactory jhttptransport.DecodeResponseFuncMiddleware, opts []httptransport.ClientOption) (Endpoints, error)
func (Endpoints) CreateAgentToken ¶
func (Endpoints) CreateUser ¶
func (Endpoints) DeleteAgentToken ¶
func (Endpoints) DeleteUserByID ¶
func (Endpoints) GetUserByID ¶
Click to show internal directories.
Click to hide internal directories.