Documentation ¶
Index ¶
- func NewRouterGRPC(lg mlog.Logger, tl *mopentelemetry.Telemetry, cc *mcasdoor.CasdoorConnection, ...) *grpc.Server
- type AccountProto
- func (ap *AccountProto) GetAccountsByAliases(ctx context.Context, aliases *proto.AccountsAlias) (*proto.AccountsResponse, error)
- func (ap *AccountProto) GetAccountsByIds(ctx context.Context, ids *proto.AccountsID) (*proto.AccountsResponse, error)
- func (ap *AccountProto) UpdateAccounts(ctx context.Context, update *proto.AccountsRequest) (*proto.AccountsResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewRouterGRPC ¶
func NewRouterGRPC(lg mlog.Logger, tl *mopentelemetry.Telemetry, cc *mcasdoor.CasdoorConnection, cuc *command.UseCase, quc *query.UseCase) *grpc.Server
NewRouterGRPC registers routes to the grpc.
Types ¶
type AccountProto ¶
type AccountProto struct { Command *command.UseCase Query *query.UseCase proto.UnimplementedAccountProtoServer }
AccountProto struct contains an account use case for managing account related operations.
func (*AccountProto) GetAccountsByAliases ¶ added in v1.13.0
func (ap *AccountProto) GetAccountsByAliases(ctx context.Context, aliases *proto.AccountsAlias) (*proto.AccountsResponse, error)
GetAccountsByAliases is a method that retrieves Account information by a given aliases.
func (*AccountProto) GetAccountsByIds ¶ added in v1.13.0
func (ap *AccountProto) GetAccountsByIds(ctx context.Context, ids *proto.AccountsID) (*proto.AccountsResponse, error)
GetAccountsByIds is a method that retrieves Account information by a given ids.
func (*AccountProto) UpdateAccounts ¶ added in v1.13.0
func (ap *AccountProto) UpdateAccounts(ctx context.Context, update *proto.AccountsRequest) (*proto.AccountsResponse, error)
UpdateAccounts is a method that update Account balances by a given ids.
Click to show internal directories.
Click to hide internal directories.