Documentation ¶
Index ¶
- Variables
- type GreeterService
- type PolicyService
- type SecretService
- type UserService
- func (us *UserService) Create(ctx context.Context, req *userpb.CreateUserRequest) (*userpb.CreateUserReply, error)
- func (us *UserService) Get(ctx context.Context, req *userpb.GetUserRequest) (*userpb.UserReply, error)
- func (us *UserService) Login(ctx context.Context, req *authpb.LoginRequest) (*authpb.LoginReply, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ProviderSet = wire.NewSet( NewPolicyService, NewUserService, NewSecretService, )
ProviderSet is service providers.
Functions ¶
This section is empty.
Types ¶
type GreeterService ¶
type GreeterService struct { v1.UnimplementedGreeterServer // contains filtered or unexported fields }
GreeterService is a greeter service.
func NewGreeterService ¶
func NewGreeterService(uc *biz.GreeterUsecase) *GreeterService
NewGreeterService new a greeter service.
func (*GreeterService) SayHello ¶
func (s *GreeterService) SayHello(ctx context.Context, in *v1.HelloRequest) (*v1.HelloReply, error)
SayHello implements helloworld.GreeterServer.
type PolicyService ¶
type PolicyService struct { pb.UnimplementedPolicyServer // contains filtered or unexported fields }
func NewPolicyService ¶
func NewPolicyService(uc *biz.PolicyUsecase) *PolicyService
func (*PolicyService) Create ¶
func (s *PolicyService) Create(ctx context.Context, req *pb.CreatePolicyRequest) (*pb.CreatePolicyReply, error)
func (*PolicyService) SayHello ¶
func (s *PolicyService) SayHello(ctx context.Context, req *pb.HelloRequest) (*pb.HelloReply, error)
type SecretService ¶
type SecretService struct { secretv1.UnimplementedSecretServer // contains filtered or unexported fields }
GreeterService is a greeter service.
func NewSecretService ¶
func NewSecretService(uc *biz.SecretUsecase) *SecretService
NewGreeterService new a greeter service.
func (*SecretService) CreateSecret ¶
func (srv *SecretService) CreateSecret(ctx context.Context, req *secretv1.CreateSecretRequest) (*secretv1.CreateSecretReply, error)
func (*SecretService) ListSecret ¶
func (srv *SecretService) ListSecret(ctx context.Context, req *secretv1.ListSecretRequest) (*secretv1.ListSecretReply, error)
type UserService ¶
type UserService struct { userpb.UnimplementedUserServer authpb.UnimplementedAuthServer // contains filtered or unexported fields }
GreeterService is a greeter service.
func NewUserService ¶
func NewUserService(uc *biz.UserUsecase) *UserService
NewGreeterService new a greeter service.
func (*UserService) Create ¶
func (us *UserService) Create(ctx context.Context, req *userpb.CreateUserRequest) (*userpb.CreateUserReply, error)
func (*UserService) Get ¶
func (us *UserService) Get(ctx context.Context, req *userpb.GetUserRequest) (*userpb.UserReply, error)
func (*UserService) Login ¶
func (us *UserService) Login(ctx context.Context, req *authpb.LoginRequest) (*authpb.LoginReply, error)
Click to show internal directories.
Click to hide internal directories.