Documentation
¶
Index ¶
- Constants
- func HandleARpcServerIAccessTokenService(svr *ARpcServerIAccessTokenService, handler arpc.Handler)
- func HandleARpcServerIAuthenticationService(svr *ARpcServerIAuthenticationService, handler arpc.Handler)
- func HandleIAccessTokenService(srv authentication.IAccessTokenService, handler arpc.Handler)
- func HandleIAuthenticationService(srv authentication.IAuthenticationService, handler arpc.Handler)
- func NewARpcIAccessTokenService(client sarpc.Client) authentication.IAccessTokenService
- func NewARpcIAccessTokenServiceWithTimeout(client sarpc.Client, timeout time.Duration) authentication.IAccessTokenService
- func NewARpcIAuthenticationService(client sarpc.Client) authentication.IAuthenticationService
- func NewARpcIAuthenticationServiceWithTimeout(client sarpc.Client, timeout time.Duration) authentication.IAuthenticationService
- type ARpcAppIAccessTokenService
- type ARpcAppIAuthenticationService
- type ARpcServerIAccessTokenService
- func (r *ARpcServerIAccessTokenService) Create(c *arpc.Context)
- func (r *ARpcServerIAccessTokenService) Delete(c *arpc.Context)
- func (r *ARpcServerIAccessTokenService) List(c *arpc.Context)
- func (r *ARpcServerIAccessTokenService) ListByUser(c *arpc.Context)
- func (r *ARpcServerIAccessTokenService) Validate(c *arpc.Context)
- type ARpcServerIAuthenticationService
- func (r *ARpcServerIAuthenticationService) AddUser(c *arpc.Context)
- func (r *ARpcServerIAuthenticationService) Authenticate(c *arpc.Context)
- func (r *ARpcServerIAuthenticationService) AuthenticateByToken(c *arpc.Context)
- func (r *ARpcServerIAuthenticationService) DeleteUser(c *arpc.Context)
- func (r *ARpcServerIAuthenticationService) HasUser(c *arpc.Context)
- func (r *ARpcServerIAuthenticationService) ListUsers(c *arpc.Context)
- func (r *ARpcServerIAuthenticationService) UpdateUser(c *arpc.Context)
- func (r *ARpcServerIAuthenticationService) UserByEmail(c *arpc.Context)
- func (r *ARpcServerIAuthenticationService) UserById(c *arpc.Context)
- func (r *ARpcServerIAuthenticationService) UserByName(c *arpc.Context)
- type IAccessTokenServiceCreateArgs
- type IAccessTokenServiceCreateResult
- type IAccessTokenServiceDeleteArgs
- type IAccessTokenServiceDeleteResult
- type IAccessTokenServiceListArgs
- type IAccessTokenServiceListByUserArgs
- type IAccessTokenServiceListByUserResult
- type IAccessTokenServiceListResult
- type IAccessTokenServiceValidateArgs
- type IAccessTokenServiceValidateResult
- type IAuthenticationServiceAddUserArgs
- type IAuthenticationServiceAddUserResult
- type IAuthenticationServiceAuthenticateArgs
- type IAuthenticationServiceAuthenticateByTokenArgs
- type IAuthenticationServiceAuthenticateByTokenResult
- type IAuthenticationServiceAuthenticateResult
- type IAuthenticationServiceDeleteUserArgs
- type IAuthenticationServiceDeleteUserResult
- type IAuthenticationServiceHasUserArgs
- type IAuthenticationServiceHasUserResult
- type IAuthenticationServiceListUsersArgs
- type IAuthenticationServiceListUsersResult
- type IAuthenticationServiceUpdateUserArgs
- type IAuthenticationServiceUpdateUserResult
- type IAuthenticationServiceUserByEmailArgs
- type IAuthenticationServiceUserByEmailResult
- type IAuthenticationServiceUserByIdArgs
- type IAuthenticationServiceUserByIdResult
- type IAuthenticationServiceUserByNameArgs
- type IAuthenticationServiceUserByNameResult
Constants ¶
View Source
const ( ARpcNameAuthenticationIAccessTokenServiceCreate = "authentication.IAccessTokenService.Create" ARpcNameAuthenticationIAccessTokenServiceListByUser = "authentication.IAccessTokenService.ListByUser" ARpcNameAuthenticationIAccessTokenServiceList = "authentication.IAccessTokenService.List" ARpcNameAuthenticationIAccessTokenServiceValidate = "authentication.IAccessTokenService.Validate" ARpcNameAuthenticationIAccessTokenServiceDelete = "authentication.IAccessTokenService.Delete" )
View Source
const ( ARpcNameAuthenticationIAuthenticationServiceAddUser = "authentication.IAuthenticationService.AddUser" ARpcNameAuthenticationIAuthenticationServiceDeleteUser = "authentication.IAuthenticationService.DeleteUser" ARpcNameAuthenticationIAuthenticationServiceUpdateUser = "authentication.IAuthenticationService.UpdateUser" ARpcNameAuthenticationIAuthenticationServiceAuthenticate = "authentication.IAuthenticationService.Authenticate" ARpcNameAuthenticationIAuthenticationServiceAuthenticateByToken = "authentication.IAuthenticationService.AuthenticateByToken" ARpcNameAuthenticationIAuthenticationServiceHasUser = "authentication.IAuthenticationService.HasUser" ARpcNameAuthenticationIAuthenticationServiceUserById = "authentication.IAuthenticationService.UserById" ARpcNameAuthenticationIAuthenticationServiceUserByName = "authentication.IAuthenticationService.UserByName" ARpcNameAuthenticationIAuthenticationServiceUserByEmail = "authentication.IAuthenticationService.UserByEmail" ARpcNameAuthenticationIAuthenticationServiceListUsers = "authentication.IAuthenticationService.ListUsers" )
Variables ¶
This section is empty.
Functions ¶
func HandleARpcServerIAccessTokenService ¶
func HandleARpcServerIAccessTokenService(svr *ARpcServerIAccessTokenService, handler arpc.Handler)
func HandleARpcServerIAuthenticationService ¶
func HandleARpcServerIAuthenticationService(svr *ARpcServerIAuthenticationService, handler arpc.Handler)
func HandleIAccessTokenService ¶
func HandleIAccessTokenService(srv authentication.IAccessTokenService, handler arpc.Handler)
func HandleIAuthenticationService ¶
func HandleIAuthenticationService(srv authentication.IAuthenticationService, handler arpc.Handler)
func NewARpcIAccessTokenService ¶
func NewARpcIAccessTokenService(client sarpc.Client) authentication.IAccessTokenService
func NewARpcIAccessTokenServiceWithTimeout ¶
func NewARpcIAccessTokenServiceWithTimeout(client sarpc.Client, timeout time.Duration) authentication.IAccessTokenService
func NewARpcIAuthenticationService ¶
func NewARpcIAuthenticationService(client sarpc.Client) authentication.IAuthenticationService
func NewARpcIAuthenticationServiceWithTimeout ¶
func NewARpcIAuthenticationServiceWithTimeout(client sarpc.Client, timeout time.Duration) authentication.IAuthenticationService
Types ¶
type ARpcAppIAccessTokenService ¶
type ARpcAppIAccessTokenService struct {
// contains filtered or unexported fields
}
func (*ARpcAppIAccessTokenService) Name ¶
func (r *ARpcAppIAccessTokenService) Name() scene.ImplName
func (*ARpcAppIAccessTokenService) RegisterService ¶
func (r *ARpcAppIAccessTokenService) RegisterService(handler arpc.Handler) error
type ARpcAppIAuthenticationService ¶
type ARpcAppIAuthenticationService struct {
// contains filtered or unexported fields
}
func (*ARpcAppIAuthenticationService) Name ¶
func (r *ARpcAppIAuthenticationService) Name() scene.ImplName
func (*ARpcAppIAuthenticationService) RegisterService ¶
func (r *ARpcAppIAuthenticationService) RegisterService(handler arpc.Handler) error
type ARpcServerIAccessTokenService ¶
type ARpcServerIAccessTokenService struct {
// contains filtered or unexported fields
}
func NewARpcServerIAccessTokenService ¶
func NewARpcServerIAccessTokenService(srv authentication.IAccessTokenService) *ARpcServerIAccessTokenService
func (*ARpcServerIAccessTokenService) Create ¶
func (r *ARpcServerIAccessTokenService) Create(c *arpc.Context)
func (*ARpcServerIAccessTokenService) Delete ¶
func (r *ARpcServerIAccessTokenService) Delete(c *arpc.Context)
func (*ARpcServerIAccessTokenService) List ¶
func (r *ARpcServerIAccessTokenService) List(c *arpc.Context)
func (*ARpcServerIAccessTokenService) ListByUser ¶
func (r *ARpcServerIAccessTokenService) ListByUser(c *arpc.Context)
func (*ARpcServerIAccessTokenService) Validate ¶
func (r *ARpcServerIAccessTokenService) Validate(c *arpc.Context)
type ARpcServerIAuthenticationService ¶
type ARpcServerIAuthenticationService struct {
// contains filtered or unexported fields
}
func NewARpcServerIAuthenticationService ¶
func NewARpcServerIAuthenticationService(srv authentication.IAuthenticationService) *ARpcServerIAuthenticationService
func (*ARpcServerIAuthenticationService) AddUser ¶
func (r *ARpcServerIAuthenticationService) AddUser(c *arpc.Context)
func (*ARpcServerIAuthenticationService) Authenticate ¶
func (r *ARpcServerIAuthenticationService) Authenticate(c *arpc.Context)
func (*ARpcServerIAuthenticationService) AuthenticateByToken ¶
func (r *ARpcServerIAuthenticationService) AuthenticateByToken(c *arpc.Context)
func (*ARpcServerIAuthenticationService) DeleteUser ¶
func (r *ARpcServerIAuthenticationService) DeleteUser(c *arpc.Context)
func (*ARpcServerIAuthenticationService) HasUser ¶
func (r *ARpcServerIAuthenticationService) HasUser(c *arpc.Context)
func (*ARpcServerIAuthenticationService) ListUsers ¶ added in v0.3.2
func (r *ARpcServerIAuthenticationService) ListUsers(c *arpc.Context)
func (*ARpcServerIAuthenticationService) UpdateUser ¶
func (r *ARpcServerIAuthenticationService) UpdateUser(c *arpc.Context)
func (*ARpcServerIAuthenticationService) UserByEmail ¶
func (r *ARpcServerIAuthenticationService) UserByEmail(c *arpc.Context)
func (*ARpcServerIAuthenticationService) UserById ¶
func (r *ARpcServerIAuthenticationService) UserById(c *arpc.Context)
func (*ARpcServerIAuthenticationService) UserByName ¶
func (r *ARpcServerIAuthenticationService) UserByName(c *arpc.Context)
type IAccessTokenServiceCreateResult ¶
type IAccessTokenServiceCreateResult struct {
Val0 authentication.AccessToken
Val1 errcode.UnmarshalError
}
type IAccessTokenServiceDeleteArgs ¶
type IAccessTokenServiceDeleteArgs struct {
Val0 string
}
type IAccessTokenServiceDeleteResult ¶
type IAccessTokenServiceDeleteResult struct {
Val0 errcode.UnmarshalError
}
type IAccessTokenServiceListByUserResult ¶
type IAccessTokenServiceListByUserResult struct {
Val0 model.PaginationResult[authentication.AccessToken]
Val1 errcode.UnmarshalError
}
type IAccessTokenServiceListResult ¶
type IAccessTokenServiceListResult struct {
Val0 model.PaginationResult[authentication.AccessToken]
Val1 errcode.UnmarshalError
}
type IAccessTokenServiceValidateArgs ¶
type IAccessTokenServiceValidateArgs struct {
Val0 string
}
type IAccessTokenServiceValidateResult ¶
type IAccessTokenServiceValidateResult struct {
Val0 string
Val1 bool
Val2 errcode.UnmarshalError
}
type IAuthenticationServiceAddUserResult ¶
type IAuthenticationServiceAddUserResult struct {
Val0 authentication.User
Val1 errcode.UnmarshalError
}
type IAuthenticationServiceAuthenticateByTokenArgs ¶
type IAuthenticationServiceAuthenticateByTokenArgs struct {
Val0 string
}
type IAuthenticationServiceAuthenticateByTokenResult ¶
type IAuthenticationServiceAuthenticateByTokenResult struct {
Val0 string
Val1 errcode.UnmarshalError
}
type IAuthenticationServiceAuthenticateResult ¶
type IAuthenticationServiceAuthenticateResult struct {
Val0 string
Val1 errcode.UnmarshalError
}
type IAuthenticationServiceDeleteUserArgs ¶
type IAuthenticationServiceDeleteUserArgs struct {
Val0 string
}
type IAuthenticationServiceDeleteUserResult ¶
type IAuthenticationServiceDeleteUserResult struct {
Val0 errcode.UnmarshalError
}
type IAuthenticationServiceHasUserArgs ¶
type IAuthenticationServiceHasUserArgs struct {
Val0 string
}
type IAuthenticationServiceHasUserResult ¶
type IAuthenticationServiceHasUserResult struct {
Val0 bool
Val1 errcode.UnmarshalError
}
type IAuthenticationServiceListUsersArgs ¶ added in v0.3.2
type IAuthenticationServiceListUsersResult ¶ added in v0.3.2
type IAuthenticationServiceListUsersResult struct {
Val0 model.PaginationResult[authentication.User]
Val1 errcode.UnmarshalError
}
type IAuthenticationServiceUpdateUserArgs ¶
type IAuthenticationServiceUpdateUserArgs struct {
Val0 authentication.User
}
type IAuthenticationServiceUpdateUserResult ¶
type IAuthenticationServiceUpdateUserResult struct {
Val0 errcode.UnmarshalError
}
type IAuthenticationServiceUserByEmailArgs ¶
type IAuthenticationServiceUserByEmailArgs struct {
Val0 string
}
type IAuthenticationServiceUserByEmailResult ¶
type IAuthenticationServiceUserByEmailResult struct {
Val0 authentication.User
Val1 errcode.UnmarshalError
}
type IAuthenticationServiceUserByIdArgs ¶
type IAuthenticationServiceUserByIdArgs struct {
Val0 string
}
type IAuthenticationServiceUserByIdResult ¶
type IAuthenticationServiceUserByIdResult struct {
Val0 authentication.User
Val1 errcode.UnmarshalError
}
type IAuthenticationServiceUserByNameArgs ¶
type IAuthenticationServiceUserByNameArgs struct {
Val0 string
}
type IAuthenticationServiceUserByNameResult ¶
type IAuthenticationServiceUserByNameResult struct {
Val0 authentication.User
Val1 errcode.UnmarshalError
}
Click to show internal directories.
Click to hide internal directories.