Documentation ¶
Index ¶
- Variables
- func GetIdentity(ctx context.Context) string
- func NewAPPSvrForTest(config2 *tiga.Configuration, log logger.Logger) v1_2.AppsServiceServer
- func NewAppService(biz *biz.AppUsecase, log logger.Logger, config *config.Config) api.AppsServiceServer
- func NewAuthzService(biz *biz.AuthzUsecase, log logger.Logger, auth *crypto.UsersAuth, ...) api.AuthServiceServer
- func NewAuthzSvrForTest(config2 *tiga.Configuration, log logger.Logger) v1.AuthServiceServer
- func NewEndpointSvrForTest(config2 *tiga.Configuration, log logger.Logger) v1_3.EndpointServiceServer
- func NewEndpointsService(biz *endpoint.EndpointUsecase, log logger.Logger, config *config.Config) api.EndpointServiceServer
- func NewFileService(biz *file.FileUsecase, config *config.Config) api.FileServiceServer
- func NewFileSvrForTest(config2 *tiga.Configuration, log logger.Logger) v1_4.FileServiceServer
- func NewSysService() api.SystemServiceServer
- func NewSysSvrForTest(config2 *tiga.Configuration, log logger.Logger) v1_5.SystemServiceServer
- func NewUserService(biz *biz.UserUsecase, log logger.Logger, config *config.Config) api.UserServiceServer
- func NewUserSvrForTest(config2 *tiga.Configuration, log logger.Logger) v1.UserServiceServer
- type AppService
- func (app *AppService) Delete(ctx context.Context, in *api.DeleteAppRequest) (*api.DeleteAppResponse, error)
- func (app *AppService) Desc() *grpc.ServiceDesc
- func (app *AppService) Get(ctx context.Context, in *api.GetAPPRequest) (*api.Apps, error)
- func (app *AppService) List(ctx context.Context, in *api.AppsListRequest) (*api.AppsListResponse, error)
- func (app *AppService) Post(ctx context.Context, in *api.AppsRequest) (*api.AddAppResponse, error)
- func (app *AppService) Update(ctx context.Context, in *api.AppsRequest) (*api.Apps, error)
- type AuthzService
- func (u *AuthzService) AuthSeed(ctx context.Context, in *api.AuthLogAPIRequest) (*api.AuthLogAPIResponse, error)
- func (u *AuthzService) Desc() *grpc.ServiceDesc
- func (u *AuthzService) Login(ctx context.Context, in *api.LoginAPIRequest) (*api.LoginAPIResponse, error)
- func (u *AuthzService) Logout(ctx context.Context, req *api.LogoutAPIRequest) (*api.LogoutAPIResponse, error)
- type EndpointsService
- func (e *EndpointsService) Delete(ctx context.Context, in *api.DeleteEndpointRequest) (*api.DeleteEndpointResponse, error)
- func (e *EndpointsService) Desc() *grpc.ServiceDesc
- func (e *EndpointsService) Get(ctx context.Context, in *api.DetailsEndpointRequest) (*api.DetailsEndpointResponse, error)
- func (e *EndpointsService) List(ctx context.Context, in *api.ListEndpointRequest) (*api.ListEndpointResponse, error)
- func (e *EndpointsService) Post(ctx context.Context, in *api.EndpointSrvConfig) (*api.AddEndpointResponse, error)
- func (e *EndpointsService) Update(ctx context.Context, in *api.EndpointSrvUpdateRequest) (*api.UpdateEndpointResponse, error)
- type FileService
- func (f *FileService) AbortMultipartUpload(ctx context.Context, in *api.AbortMultipartUploadRequest) (*api.AbortMultipartUploadResponse, error)
- func (f *FileService) CompleteMultipartUpload(ctx context.Context, in *api.CompleteMultipartUploadRequest) (*api.CompleteMultipartUploadResponse, error)
- func (f *FileService) Delete(ctx context.Context, in *api.DeleteRequest) (*api.DeleteResponse, error)
- func (f *FileService) Desc() *grpc.ServiceDesc
- func (f *FileService) Download(ctx context.Context, in *api.DownloadRequest) (*httpbody.HttpBody, error)
- func (f *FileService) DownloadForRange(ctx context.Context, in *api.DownloadRequest) (*httpbody.HttpBody, error)
- func (f *FileService) InitiateMultipartUpload(ctx context.Context, in *api.InitiateMultipartUploadRequest) (*api.InitiateMultipartUploadResponse, error)
- func (f *FileService) Metadata(ctx context.Context, in *api.FileMetadataRequest) (*api.FileMetadataResponse, error)
- func (f *FileService) Upload(ctx context.Context, in *api.UploadFileRequest) (*api.UploadFileResponse, error)
- func (f *FileService) UploadMultipartFile(ctx context.Context, in *api.UploadMultipartFileRequest) (*api.UploadMultipartFileResponse, error)
- type Service
- type ServiceOptions
- type SysService
- type UserService
- func (u *UserService) Delete(ctx context.Context, in *api.DeleteUserRequest) (*api.DeleteUserResponse, error)
- func (app *UserService) Desc() *grpc.ServiceDesc
- func (u *UserService) Get(ctx context.Context, in *api.GetUserRequest) (*api.Users, error)
- func (u *UserService) Register(ctx context.Context, in *api.PostUserRequest) (*api.Users, error)
- func (u *UserService) Update(ctx context.Context, in *api.PatchUserRequest) (*api.Users, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ProviderSet = wire.NewSet(NewAuthzService, NewUserService, NewFileService, NewServices, NewEndpointsService, NewAppService, NewSysService)
Functions ¶
func GetIdentity ¶
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 NewEndpointsService ¶
func NewEndpointsService(biz *endpoint.EndpointUsecase, log logger.Logger, config *config.Config) api.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 (app *AppService) Delete(ctx context.Context, in *api.DeleteAppRequest) (*api.DeleteAppResponse, error)
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 (app *AppService) List(ctx context.Context, in *api.AppsListRequest) (*api.AppsListResponse, error)
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 (u *AuthzService) AuthSeed(ctx context.Context, in *api.AuthLogAPIRequest) (*api.AuthLogAPIResponse, error)
func (*AuthzService) Desc ¶
func (u *AuthzService) Desc() *grpc.ServiceDesc
func (*AuthzService) Login ¶
func (u *AuthzService) Login(ctx context.Context, in *api.LoginAPIRequest) (*api.LoginAPIResponse, error)
func (*AuthzService) Logout ¶
func (u *AuthzService) Logout(ctx context.Context, req *api.LogoutAPIRequest) (*api.LogoutAPIResponse, error)
type EndpointsService ¶
type EndpointsService struct { api.UnimplementedEndpointServiceServer // contains filtered or unexported fields }
func (*EndpointsService) Delete ¶
func (e *EndpointsService) Delete(ctx context.Context, in *api.DeleteEndpointRequest) (*api.DeleteEndpointResponse, error)
func (*EndpointsService) Desc ¶
func (e *EndpointsService) Desc() *grpc.ServiceDesc
func (*EndpointsService) Get ¶
func (e *EndpointsService) Get(ctx context.Context, in *api.DetailsEndpointRequest) (*api.DetailsEndpointResponse, error)
func (*EndpointsService) List ¶
func (e *EndpointsService) List(ctx context.Context, in *api.ListEndpointRequest) (*api.ListEndpointResponse, error)
func (*EndpointsService) Post ¶
func (e *EndpointsService) Post(ctx context.Context, in *api.EndpointSrvConfig) (*api.AddEndpointResponse, error)
func (*EndpointsService) Update ¶
func (e *EndpointsService) Update(ctx context.Context, in *api.EndpointSrvUpdateRequest) (*api.UpdateEndpointResponse, error)
type FileService ¶
type FileService struct { api.UnimplementedFileServiceServer // contains filtered or unexported fields }
func (*FileService) AbortMultipartUpload ¶
func (f *FileService) AbortMultipartUpload(ctx context.Context, in *api.AbortMultipartUploadRequest) (*api.AbortMultipartUploadResponse, error)
func (*FileService) CompleteMultipartUpload ¶
func (f *FileService) CompleteMultipartUpload(ctx context.Context, in *api.CompleteMultipartUploadRequest) (*api.CompleteMultipartUploadResponse, error)
func (*FileService) Delete ¶
func (f *FileService) Delete(ctx context.Context, in *api.DeleteRequest) (*api.DeleteResponse, error)
func (*FileService) Desc ¶
func (f *FileService) Desc() *grpc.ServiceDesc
func (*FileService) Download ¶
func (f *FileService) Download(ctx context.Context, in *api.DownloadRequest) (*httpbody.HttpBody, error)
func (*FileService) DownloadForRange ¶
func (f *FileService) DownloadForRange(ctx context.Context, in *api.DownloadRequest) (*httpbody.HttpBody, error)
func (*FileService) InitiateMultipartUpload ¶
func (f *FileService) InitiateMultipartUpload(ctx context.Context, in *api.InitiateMultipartUploadRequest) (*api.InitiateMultipartUploadResponse, error)
func (*FileService) Metadata ¶
func (f *FileService) Metadata(ctx context.Context, in *api.FileMetadataRequest) (*api.FileMetadataResponse, error)
func (*FileService) Upload ¶
func (f *FileService) Upload(ctx context.Context, in *api.UploadFileRequest) (*api.UploadFileResponse, error)
func (*FileService) UploadMultipartFile ¶
func (f *FileService) UploadMultipartFile(ctx context.Context, in *api.UploadMultipartFileRequest) (*api.UploadMultipartFileResponse, error)
type Service ¶
type Service interface {
Desc() *grpc.ServiceDesc
}
func NewServices ¶
func NewServices(file file.FileServiceServer, authz user.AuthServiceServer, ep ep.EndpointServiceServer, app app.AppsServiceServer, sys sys.SystemServiceServer, users user.UserServiceServer, ) []Service
type SysService ¶
type SysService struct {
api.UnimplementedSystemServiceServer
}
func (*SysService) Desc ¶
func (s *SysService) Desc() *grpc.ServiceDesc
func (*SysService) Get ¶
func (s *SysService) Get(ctx context.Context, in *api.InfoRequest) (*api.InfoResponse, error)
type UserService ¶
type UserService struct { api.UnimplementedUserServiceServer // contains filtered or unexported fields }
func (*UserService) Delete ¶
func (u *UserService) Delete(ctx context.Context, in *api.DeleteUserRequest) (*api.DeleteUserResponse, error)
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)
Click to show internal directories.
Click to hide internal directories.