service

package
v0.0.0-...-585f190 Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2024 License: Apache-2.0 Imports: 33 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

func GetIdentity

func GetIdentity(ctx context.Context) string

func NewAPPSvrForTest

func NewAPPSvrForTest(config2 *tiga.Configuration, log logger.Logger) v1_2.AppsServiceServer

func NewAppService

func NewAppService(biz *biz.AppUsecase, log logger.Logger, config *config.Config) api.AppsServiceServer

func NewAuthzService

func NewAuthzService(biz *biz.AuthzUsecase, log logger.Logger, auth *crypto.UsersAuth, config *config.Config) api.AuthServiceServer

func NewAuthzSvrForTest

func NewAuthzSvrForTest(config2 *tiga.Configuration, log logger.Logger) v1.AuthServiceServer

func NewEndpointSvrForTest

func NewEndpointSvrForTest(config2 *tiga.Configuration, log logger.Logger) v1_3.EndpointServiceServer

func NewFileService

func NewFileService(biz *file.FileUsecase, config *config.Config) api.FileServiceServer

func NewFileSvrForTest

func NewFileSvrForTest(config2 *tiga.Configuration, log logger.Logger) v1_4.FileServiceServer

func NewSysService

func NewSysService() api.SystemServiceServer

func NewSysSvrForTest

func NewSysSvrForTest(config2 *tiga.Configuration, log logger.Logger) v1_5.SystemServiceServer

func NewUserService

func NewUserService(biz *biz.UserUsecase, log logger.Logger, config *config.Config) api.UserServiceServer

func NewUserSvrForTest

func NewUserSvrForTest(config2 *tiga.Configuration, log logger.Logger) v1.UserServiceServer

Types

type AppService

type AppService struct {
	api.UnimplementedAppsServiceServer
	// contains filtered or unexported fields
}

func (*AppService) Delete

func (*AppService) Desc

func (app *AppService) Desc() *grpc.ServiceDesc

func (*AppService) Get

func (app *AppService) Get(ctx context.Context, in *api.GetAPPRequest) (*api.Apps, error)

func (*AppService) List

func (*AppService) Post

func (app *AppService) Post(ctx context.Context, in *api.AppsRequest) (*api.AddAppResponse, error)

func (*AppService) Update

func (app *AppService) Update(ctx context.Context, in *api.AppsRequest) (*api.Apps, error)

type AuthzService

type AuthzService struct {
	api.UnimplementedAuthServiceServer
	// contains filtered or unexported fields
}

func (*AuthzService) AuthSeed

func (*AuthzService) Desc

func (u *AuthzService) Desc() *grpc.ServiceDesc

func (*AuthzService) Login

func (*AuthzService) Logout

type EndpointsService

type EndpointsService struct {
	api.UnimplementedEndpointServiceServer
	// contains filtered or unexported fields
}

func (*EndpointsService) Delete

func (*EndpointsService) Desc

func (e *EndpointsService) Desc() *grpc.ServiceDesc

func (*EndpointsService) Get

func (*EndpointsService) List

func (*EndpointsService) Post

func (*EndpointsService) Update

type FileService

type FileService struct {
	api.UnimplementedFileServiceServer
	// contains filtered or unexported fields
}

func (*FileService) AbortMultipartUpload

func (*FileService) Delete

func (*FileService) Desc

func (f *FileService) Desc() *grpc.ServiceDesc

func (*FileService) Download

func (*FileService) DownloadForRange

func (f *FileService) DownloadForRange(ctx context.Context, in *api.DownloadRequest) (*httpbody.HttpBody, error)

func (*FileService) Metadata

func (*FileService) Upload

func (*FileService) UploadMultipartFile

type Service

type Service interface {
	Desc() *grpc.ServiceDesc
}

type ServiceOptions

type ServiceOptions func(*grpc.Server, *runtime.ServeMux, string) error

type SysService

type SysService struct {
	api.UnimplementedSystemServiceServer
}

func (*SysService) Desc

func (s *SysService) Desc() *grpc.ServiceDesc

func (*SysService) Get

type UserService

type UserService struct {
	api.UnimplementedUserServiceServer
	// contains filtered or unexported fields
}

func (*UserService) Delete

func (*UserService) Desc

func (app *UserService) Desc() *grpc.ServiceDesc

func (*UserService) Get

func (u *UserService) Get(ctx context.Context, in *api.GetUserRequest) (*api.Users, error)

func (*UserService) Register

func (u *UserService) Register(ctx context.Context, in *api.PostUserRequest) (*api.Users, error)

func (*UserService) Update

func (u *UserService) Update(ctx context.Context, in *api.PatchUserRequest) (*api.Users, error)

Jump to

Keyboard shortcuts

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