Documentation
¶
Index ¶
- Variables
- func NewAuthRPCProvider(client authservice.Client) rpc.IAuthProvider
- func NewFileRPCProvider(client fileservice.Client) rpc.IFileProvider
- func NewUserRPCProvider(client userservice.Client) rpc.IUserProvider
- type AuthRPCAdapter
- func (a AuthRPCAdapter) Authorization(ctx context.Context, param *rpc.AuthorizationParam) (err error)
- func (a AuthRPCAdapter) AuthorizationWithoutSPI(ctx context.Context, param *rpc.AuthorizationWithoutSPIParam) (err error)
- func (a AuthRPCAdapter) MAuthorizeWithoutSPI(ctx context.Context, spaceID int64, params []*rpc.AuthorizationWithoutSPIParam) error
- type FileRPCAdapter
- func (f *FileRPCAdapter) GetFileURL(ctx context.Context, key string) (url string, err error)
- func (f *FileRPCAdapter) MGetFileURL(ctx context.Context, keys []string) (urls map[string]string, err error)
- func (f FileRPCAdapter) UploadLoopFileInner(ctx context.Context, req *file.UploadLoopFileInnerRequest, ...) (r *file.UploadLoopFileInnerResponse, err error)
- type UserRPCAdapter
Constants ¶
This section is empty.
Variables ¶
View Source
var FoundationRPCSet = wire.NewSet( NewAuthRPCProvider, NewUserRPCProvider, NewFileRPCProvider, )
Functions ¶
func NewAuthRPCProvider ¶
func NewAuthRPCProvider(client authservice.Client) rpc.IAuthProvider
func NewFileRPCProvider ¶
func NewFileRPCProvider(client fileservice.Client) rpc.IFileProvider
func NewUserRPCProvider ¶
func NewUserRPCProvider(client userservice.Client) rpc.IUserProvider
Types ¶
type AuthRPCAdapter ¶
type AuthRPCAdapter struct {
// contains filtered or unexported fields
}
func (AuthRPCAdapter) Authorization ¶
func (a AuthRPCAdapter) Authorization(ctx context.Context, param *rpc.AuthorizationParam) (err error)
func (AuthRPCAdapter) AuthorizationWithoutSPI ¶
func (a AuthRPCAdapter) AuthorizationWithoutSPI(ctx context.Context, param *rpc.AuthorizationWithoutSPIParam) (err error)
func (AuthRPCAdapter) MAuthorizeWithoutSPI ¶
func (a AuthRPCAdapter) MAuthorizeWithoutSPI(ctx context.Context, spaceID int64, params []*rpc.AuthorizationWithoutSPIParam) error
type FileRPCAdapter ¶
type FileRPCAdapter struct {
// contains filtered or unexported fields
}
func (*FileRPCAdapter) GetFileURL ¶
func (*FileRPCAdapter) MGetFileURL ¶
func (FileRPCAdapter) UploadLoopFileInner ¶
func (f FileRPCAdapter) UploadLoopFileInner(ctx context.Context, req *file.UploadLoopFileInnerRequest, callOptions ...callopt.Option) (r *file.UploadLoopFileInnerResponse, err error)
type UserRPCAdapter ¶
type UserRPCAdapter struct {
// contains filtered or unexported fields
}
func (UserRPCAdapter) MGetUserInfo ¶
Click to show internal directories.
Click to hide internal directories.