Documentation
¶
Index ¶
- func AddUserPermissionEndpoint(svc mgmt.Service) endpoint.Endpoint
- func AttachAccountToServiceEndpoint(svc mgmt.Service) endpoint.Endpoint
- func AttachUserToAccountEndpoint(svc mgmt.Service) endpoint.Endpoint
- func BlockUserEndpoint(svc mgmt.Service) endpoint.Endpoint
- func CreateAccountEndpoint(svc mgmt.Service) endpoint.Endpoint
- func CreateAccountWithNameEndpoint(svc mgmt.Service) endpoint.Endpoint
- func CreatePermissionEndpoint(svc mgmt.Service) endpoint.Endpoint
- func CreateServiceEndpoint(svc mgmt.Service) endpoint.Endpoint
- func CreateUserWithLoginPasswordEndpoint(svc mgmt.Service) endpoint.Endpoint
- func CreateUserWithTelegramEndpoint(svc mgmt.Service) endpoint.Endpoint
- func DeletePermissionEndpoint(svc mgmt.Service) endpoint.Endpoint
- func GetAccountEndpoint(svc mgmt.Service) endpoint.Endpoint
- func GetAllAccountsEndpoint(svc mgmt.Service) endpoint.Endpoint
- func GetAllPermissionEndpoint(svc mgmt.Service) endpoint.Endpoint
- func GetAllServicesEndpoint(svc mgmt.Service) endpoint.Endpoint
- func GetAllUsersEndpoint(svc mgmt.Service) endpoint.Endpoint
- func GetFilteredPermissionsEndpoint(svc mgmt.Service) endpoint.Endpoint
- func GetPermissionEndpoint(svc mgmt.Service) endpoint.Endpoint
- func GetServiceEndpoint(svc mgmt.Service) endpoint.Endpoint
- func GetUserEndpoint(svc mgmt.Service) endpoint.Endpoint
- func GetUserPermissionsEndpoint(svc mgmt.Service) endpoint.Endpoint
- func RemoveAccountFromServiceEndpoint(svc mgmt.Service) endpoint.Endpoint
- func RemoveUserPermissionEndpoint(svc mgmt.Service) endpoint.Endpoint
- func UnblockUserEndpoint(svc mgmt.Service) endpoint.Endpoint
- func UpdateAccountEndpoint(svc mgmt.Service) endpoint.Endpoint
- func UpdateUserEndpoint(svc mgmt.Service) endpoint.Endpoint
- type AddUserPermissionRequest
- type AddUserPermissionResponse
- type AttachAccountToServiceRequest
- type AttachAccountToServiceResponse
- type AttachUserToAccountRequest
- type AttachUserToAccountResponse
- type BlockUserRequest
- type BlockUserResponse
- type CreateAccountRequest
- type CreateAccountResponse
- type CreateAccountWithNameRequest
- type CreateAccountWithNameResponse
- type CreatePermissionRequest
- type CreatePermissionResponse
- type CreateServiceRequest
- type CreateServiceResponse
- type CreateUserWithLoginPasswordRequest
- type CreateUserWithLoginPasswordResponse
- type CreateUserWithTelegramRequest
- type CreateUserWithTelegramResponse
- type DeletePermissionRequest
- type DeletePermissionResponse
- type EndpointsSet
- func (set EndpointsSet) AddUserPermission(arg0 context.Context, arg1 *types.Permission, arg2 uint32) (res0 bool, res1 error)
- func (set EndpointsSet) AttachAccountToService(arg0 context.Context, arg1 uint32, arg2 uint32) (res0 bool, res1 error)
- func (set EndpointsSet) AttachUserToAccount(arg0 context.Context, arg1 uint32, arg2 uint32) (res0 bool, res1 error)
- func (set EndpointsSet) BlockUser(arg0 context.Context, arg1 uint32) (res0 bool, res1 error)
- func (set EndpointsSet) CreateAccount(arg0 context.Context) (res0 *types.Account, res1 error)
- func (set EndpointsSet) CreateAccountWithName(arg0 context.Context, arg1 string) (res0 *types.Account, res1 error)
- func (set EndpointsSet) CreatePermission(arg0 context.Context, arg1 uint32, arg2 string, arg3 *access.Access) (res0 *types.Permission, res1 error)
- func (set EndpointsSet) CreateService(arg0 context.Context, arg1 string) (res0 *types.Service, res1 error)
- func (set EndpointsSet) CreateUserWithLoginPassword(arg0 context.Context, arg1 string, arg2 string) (res0 *types.User, res1 error)
- func (set EndpointsSet) CreateUserWithTelegram(arg0 context.Context, arg1 uint64, arg2 string, arg3 string) (res0 *types.User, res1 error)
- func (set EndpointsSet) DeletePermission(arg0 context.Context, arg1 *types.Permission) (res0 bool, res1 error)
- func (set EndpointsSet) GetAccount(arg0 context.Context, arg1 *types.Account) (res0 *types.Account, res1 error)
- func (set EndpointsSet) GetAllAccounts(arg0 context.Context) (res0 []*types.Account, res1 error)
- func (set EndpointsSet) GetAllPermission(arg0 context.Context) (res0 []*types.Permission, res1 error)
- func (set EndpointsSet) GetAllServices(arg0 context.Context) (res0 []*types.Service, res1 error)
- func (set EndpointsSet) GetAllUsers(arg0 context.Context) (res0 []*types.User, res1 error)
- func (set EndpointsSet) GetFilteredPermissions(arg0 context.Context, arg1 *types.Permission) (res0 []*types.Permission, res1 error)
- func (set EndpointsSet) GetPermission(arg0 context.Context, arg1 *types.Permission) (res0 *types.Permission, res1 error)
- func (set EndpointsSet) GetService(arg0 context.Context, arg1 *types.Service) (res0 *types.Service, res1 error)
- func (set EndpointsSet) GetUser(arg0 context.Context, arg1 *types.User) (res0 *types.User, res1 error)
- func (set EndpointsSet) GetUserPermissions(arg0 context.Context, arg1 uint32) (res0 []*types.Permission, res1 error)
- func (set EndpointsSet) RemoveAccountFromService(arg0 context.Context, arg1 uint32, arg2 uint32) (res0 bool, res1 error)
- func (set EndpointsSet) RemoveUserPermission(arg0 context.Context, arg1 uint32, arg2 uint32) (res0 bool, res1 error)
- func (set EndpointsSet) UnblockUser(arg0 context.Context, arg1 uint32) (res0 bool, res1 error)
- func (set EndpointsSet) UpdateAccount(arg0 context.Context, arg1 *types.Account) (res0 *types.Account, res1 error)
- func (set EndpointsSet) UpdateUser(arg0 context.Context, arg1 *types.User) (res0 *types.User, res1 error)
- type GetAccountRequest
- type GetAccountResponse
- type GetAllAccountsRequest
- type GetAllAccountsResponse
- type GetAllPermissionRequest
- type GetAllPermissionResponse
- type GetAllServicesRequest
- type GetAllServicesResponse
- type GetAllUsersRequest
- type GetAllUsersResponse
- type GetFilteredPermissionsRequest
- type GetFilteredPermissionsResponse
- type GetPermissionRequest
- type GetPermissionResponse
- type GetServiceRequest
- type GetServiceResponse
- type GetUserPermissionsRequest
- type GetUserPermissionsResponse
- type GetUserRequest
- type GetUserResponse
- type ManyToManyStreamEndpoint
- type ManyToOneStreamEndpoint
- type OneToManyStreamEndpoint
- type RemoveAccountFromServiceRequest
- type RemoveAccountFromServiceResponse
- type RemoveUserPermissionRequest
- type RemoveUserPermissionResponse
- type UnblockUserRequest
- type UnblockUserResponse
- type UpdateAccountRequest
- type UpdateAccountResponse
- type UpdateUserRequest
- type UpdateUserResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AddUserPermissionRequest ¶
type AddUserPermissionRequest struct { P *types.Permission `json:"p"` UserId uint32 `json:"user_id"` }
type AddUserPermissionResponse ¶
type AddUserPermissionResponse struct {
Ok bool `json:"ok"`
}
type AttachAccountToServiceResponse ¶
type AttachAccountToServiceResponse struct {
Ok bool `json:"ok"`
}
type AttachUserToAccountResponse ¶
type AttachUserToAccountResponse struct {
Ok bool `json:"ok"`
}
type BlockUserRequest ¶
type BlockUserRequest struct {
UserId uint32 `json:"user_id"`
}
type BlockUserResponse ¶
type BlockUserResponse struct {
Ok bool `json:"ok"`
}
type CreateAccountRequest ¶
type CreateAccountRequest struct{}
Formal exchange type, please do not delete.
type CreateAccountResponse ¶
type CreateAccountWithNameRequest ¶
type CreateAccountWithNameRequest struct {
Name string `json:"name"`
}
type CreatePermissionRequest ¶
type CreatePermissionResponse ¶
type CreatePermissionResponse struct {
P *types.Permission `json:"p"`
}
type CreateServiceRequest ¶
type CreateServiceRequest struct {
Name string `json:"name"`
}
type CreateServiceResponse ¶
type DeletePermissionRequest ¶
type DeletePermissionRequest struct {
P *types.Permission `json:"p"`
}
type DeletePermissionResponse ¶
type DeletePermissionResponse struct {
Ok bool `json:"ok"`
}
type EndpointsSet ¶
type EndpointsSet struct { CreateUserWithLoginPasswordEndpoint endpoint.Endpoint CreateUserWithTelegramEndpoint endpoint.Endpoint GetAllUsersEndpoint endpoint.Endpoint GetUserEndpoint endpoint.Endpoint UpdateUserEndpoint endpoint.Endpoint BlockUserEndpoint endpoint.Endpoint UnblockUserEndpoint endpoint.Endpoint CreateServiceEndpoint endpoint.Endpoint GetAllServicesEndpoint endpoint.Endpoint GetServiceEndpoint endpoint.Endpoint CreateAccountEndpoint endpoint.Endpoint CreateAccountWithNameEndpoint endpoint.Endpoint GetAllAccountsEndpoint endpoint.Endpoint GetAccountEndpoint endpoint.Endpoint UpdateAccountEndpoint endpoint.Endpoint AttachUserToAccountEndpoint endpoint.Endpoint AttachAccountToServiceEndpoint endpoint.Endpoint RemoveAccountFromServiceEndpoint endpoint.Endpoint CreatePermissionEndpoint endpoint.Endpoint GetPermissionEndpoint endpoint.Endpoint GetAllPermissionEndpoint endpoint.Endpoint GetFilteredPermissionsEndpoint endpoint.Endpoint DeletePermissionEndpoint endpoint.Endpoint GetUserPermissionsEndpoint endpoint.Endpoint AddUserPermissionEndpoint endpoint.Endpoint RemoveUserPermissionEndpoint endpoint.Endpoint }
func Endpoints ¶
func Endpoints(svc mgmt.Service) EndpointsSet
func (EndpointsSet) AddUserPermission ¶
func (set EndpointsSet) AddUserPermission(arg0 context.Context, arg1 *types.Permission, arg2 uint32) (res0 bool, res1 error)
func (EndpointsSet) AttachAccountToService ¶
func (EndpointsSet) AttachUserToAccount ¶
func (EndpointsSet) CreateAccount ¶
func (EndpointsSet) CreateAccountWithName ¶
func (EndpointsSet) CreatePermission ¶
func (set EndpointsSet) CreatePermission(arg0 context.Context, arg1 uint32, arg2 string, arg3 *access.Access) (res0 *types.Permission, res1 error)
func (EndpointsSet) CreateService ¶
func (EndpointsSet) CreateUserWithLoginPassword ¶
func (EndpointsSet) CreateUserWithTelegram ¶
func (EndpointsSet) DeletePermission ¶
func (set EndpointsSet) DeletePermission(arg0 context.Context, arg1 *types.Permission) (res0 bool, res1 error)
func (EndpointsSet) GetAccount ¶
func (EndpointsSet) GetAllAccounts ¶
func (EndpointsSet) GetAllPermission ¶
func (set EndpointsSet) GetAllPermission(arg0 context.Context) (res0 []*types.Permission, res1 error)
func (EndpointsSet) GetAllServices ¶
func (EndpointsSet) GetAllUsers ¶
func (EndpointsSet) GetFilteredPermissions ¶
func (set EndpointsSet) GetFilteredPermissions(arg0 context.Context, arg1 *types.Permission) (res0 []*types.Permission, res1 error)
func (EndpointsSet) GetPermission ¶
func (set EndpointsSet) GetPermission(arg0 context.Context, arg1 *types.Permission) (res0 *types.Permission, res1 error)
func (EndpointsSet) GetService ¶
func (EndpointsSet) GetUserPermissions ¶
func (set EndpointsSet) GetUserPermissions(arg0 context.Context, arg1 uint32) (res0 []*types.Permission, res1 error)
func (EndpointsSet) RemoveAccountFromService ¶
func (EndpointsSet) RemoveUserPermission ¶
func (EndpointsSet) UnblockUser ¶
func (EndpointsSet) UpdateAccount ¶
func (EndpointsSet) UpdateUser ¶
type GetAccountRequest ¶
type GetAccountResponse ¶
type GetAllAccountsRequest ¶
type GetAllAccountsRequest struct{}
Formal exchange type, please do not delete.
type GetAllAccountsResponse ¶
type GetAllPermissionRequest ¶
type GetAllPermissionRequest struct{}
Formal exchange type, please do not delete.
type GetAllPermissionResponse ¶
type GetAllPermissionResponse struct {
P []*types.Permission `json:"p"`
}
type GetAllServicesRequest ¶
type GetAllServicesRequest struct{}
Formal exchange type, please do not delete.
type GetAllServicesResponse ¶
type GetAllUsersRequest ¶
type GetAllUsersRequest struct{}
Formal exchange type, please do not delete.
type GetAllUsersResponse ¶
type GetFilteredPermissionsRequest ¶
type GetFilteredPermissionsRequest struct {
P *types.Permission `json:"p"`
}
type GetFilteredPermissionsResponse ¶
type GetFilteredPermissionsResponse struct {
Perm []*types.Permission `json:"perm"`
}
type GetPermissionRequest ¶
type GetPermissionRequest struct {
P *types.Permission `json:"p"`
}
type GetPermissionResponse ¶
type GetPermissionResponse struct {
Perm *types.Permission `json:"perm"`
}
type GetServiceRequest ¶
type GetServiceResponse ¶
type GetUserPermissionsRequest ¶
type GetUserPermissionsRequest struct {
UserId uint32 `json:"user_id"`
}
type GetUserPermissionsResponse ¶
type GetUserPermissionsResponse struct {
Permissions []*types.Permission `json:"permissions"`
}
type GetUserRequest ¶
type GetUserResponse ¶
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 RemoveAccountFromServiceResponse ¶
type RemoveAccountFromServiceResponse struct {
Ok bool `json:"ok"`
}
type RemoveUserPermissionResponse ¶
type RemoveUserPermissionResponse struct {
Ok bool `json:"ok"`
}
type UnblockUserRequest ¶
type UnblockUserRequest struct {
UserId uint32 `json:"user_id"`
}
type UnblockUserResponse ¶
type UnblockUserResponse struct {
Ok bool `json:"ok"`
}
type UpdateAccountRequest ¶
type UpdateAccountResponse ¶
type UpdateUserRequest ¶
type UpdateUserResponse ¶
Source Files
¶
Click to show internal directories.
Click to hide internal directories.