Documentation ¶
Index ¶
- type Authenticator
- type AuthenticatorService
- type Storage
- type StorageService
- func (s StorageService) Download(request *proto.FileRequest, stream proto.Storage_DownloadServer) error
- func (s StorageService) List(ctx context.Context, _ *emptypb.Empty) (*proto.ListResponse, error)
- func (s StorageService) Upload(request *proto.FileRequest, stream proto.Storage_UploadServer) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Authenticator ¶
type AuthenticatorService ¶
type AuthenticatorService struct {
// contains filtered or unexported fields
}
func NewAuthenticatorService ¶
func NewAuthenticatorService(authenticator Authenticator, logger log.Logger) *AuthenticatorService
func (AuthenticatorService) AddUser ¶
func (a AuthenticatorService) AddUser(_ context.Context, request *proto.AddUserRequest) (*proto.Token, error)
func (AuthenticatorService) Authenticate ¶
func (a AuthenticatorService) Authenticate(_ context.Context, request *proto.AuthenticateRequest) (*proto.Token, error)
type StorageService ¶
type StorageService struct {
// contains filtered or unexported fields
}
func NewStorageService ¶
func NewStorageService(authenticator Authenticator, storage Storage, logger log.Logger) *StorageService
func (StorageService) Download ¶
func (s StorageService) Download(request *proto.FileRequest, stream proto.Storage_DownloadServer) error
func (StorageService) List ¶
func (s StorageService) List(ctx context.Context, _ *emptypb.Empty) (*proto.ListResponse, error)
func (StorageService) Upload ¶
func (s StorageService) Upload(request *proto.FileRequest, stream proto.Storage_UploadServer) error
Click to show internal directories.
Click to hide internal directories.