service

package
v0.0.0-...-7bafd44 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 10, 2023 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

ProviderSet is service providers.

Functions

This section is empty.

Types

type HealthCheckService

type HealthCheckService struct {
	v1.UnimplementedHealthCheckServer
}

func NewHealthCheckService

func NewHealthCheckService() *HealthCheckService

func (*HealthCheckService) HealthCheck

func (c *HealthCheckService) HealthCheck(ctx context.Context, req *emptypb.Empty) (*structpb.Struct, error)

type User

type User struct {
	v1.UnimplementedUserServer
	// contains filtered or unexported fields
}

func NewUserService

func NewUserService(uc *biz.LoginDetailUsecase) *User

func (*User) Activate

func (s *User) Activate(ctx context.Context, activateRequest *v1.ActivateRequest) (*emptypb.Empty, error)

func (*User) CheckPermission

func (s *User) CheckPermission() error

func (*User) Logout

func (s *User) Logout(ctx context.Context, logoutRequest *v1.LogoutRequest) (*emptypb.Empty, error)

func (*User) Register

func (s *User) Register(ctx context.Context, registerRequest *v1.GrantRequest) (*v1.GrantAccess, error)

func (*User) Token

func (s *User) Token(ctx context.Context, grantRequest *v1.GrantRequest) (*v1.GrantAccess, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL