Documentation
¶
Index ¶
- func GetPermissionsForServiceEndpoint(svc auth.Service) endpoint.Endpoint
- func LoginEndpoint(svc auth.Service) endpoint.Endpoint
- func PublicKeyEndpoint(svc auth.Service) endpoint.Endpoint
- func RegisterEndpoint(svc auth.Service) endpoint.Endpoint
- type EndpointsSet
- func (set EndpointsSet) GetPermissionsForService(arg0 context.Context, arg1 string) (res0 []*types.Permission, res1 error)
- func (set EndpointsSet) Login(arg0 context.Context, arg1 string, arg2 string, arg3 string) (res0 *types.AccessToken, res1 error)
- func (set EndpointsSet) PublicKey(arg0 context.Context) (res0 []byte, res1 error)
- func (set EndpointsSet) Register(arg0 context.Context, arg1 string, arg2 string, arg3 string, arg4 uint32) (res0 bool, res1 error)
- type GetPermissionsForServiceRequest
- type GetPermissionsForServiceResponse
- type LoginRequest
- type LoginResponse
- type ManyToManyStreamEndpoint
- type ManyToOneStreamEndpoint
- type OneToManyStreamEndpoint
- type PublicKeyRequest
- type PublicKeyResponse
- type RegisterRequest
- type RegisterResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type EndpointsSet ¶
type EndpointsSet struct { RegisterEndpoint endpoint.Endpoint LoginEndpoint endpoint.Endpoint PublicKeyEndpoint endpoint.Endpoint GetPermissionsForServiceEndpoint endpoint.Endpoint }
func Endpoints ¶
func Endpoints(svc auth.Service) EndpointsSet
func (EndpointsSet) GetPermissionsForService ¶
func (set EndpointsSet) GetPermissionsForService(arg0 context.Context, arg1 string) (res0 []*types.Permission, res1 error)
func (EndpointsSet) Login ¶
func (set EndpointsSet) Login(arg0 context.Context, arg1 string, arg2 string, arg3 string) (res0 *types.AccessToken, res1 error)
type GetPermissionsForServiceRequest ¶
type GetPermissionsForServiceRequest struct {
Name string `json:"name"`
}
type GetPermissionsForServiceResponse ¶
type GetPermissionsForServiceResponse struct {
Permissions []*types.Permission `json:"permissions"`
}
type LoginRequest ¶
type LoginResponse ¶
type LoginResponse struct {
Token *types.AccessToken `json:"token"`
}
type ManyToManyStreamEndpoint ¶
type ManyToManyStreamEndpoint func(stream interface{}) error
type ManyToOneStreamEndpoint ¶
type ManyToOneStreamEndpoint func(stream interface{}) error
type OneToManyStreamEndpoint ¶
type OneToManyStreamEndpoint func(req interface{}, stream interface{}) error
EndpointsSet implements Service API and used for transport purposes.
type PublicKeyResponse ¶
type PublicKeyResponse struct {
Pub []byte `json:"pub"`
}
type RegisterRequest ¶
type RegisterResponse ¶
type RegisterResponse struct {
Ok bool `json:"ok"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.