Documentation ¶
Index ¶
- type UploadService
- type UserService
- func (svc UserService) EditUser(ctx context.Context, r *proto.EditUserRequest) (*proto.EditUserReply, error)
- func (svc UserService) GetUser(ctx context.Context, r *proto.GetUserRequest) (*proto.GetUserReply, error)
- func (svc UserService) Login(ctx context.Context, r *proto.LoginRequest) (*proto.LoginReply, error)
- func (svc UserService) Register(ctx context.Context, r *proto.RegisterRequest) (*proto.RegisterReply, error)
- func (svc UserService) UpdateUserCache(username string) error
- func (svc UserService) UserAuth(sessionID string) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type UploadService ¶
type UploadService struct { proto.UnimplementedUploadServiceServer // contains filtered or unexported fields }
func NewUploadService ¶
func NewUploadService(ctx context.Context) UploadService
func (UploadService) UploadFile ¶
func (svc UploadService) UploadFile(ctx context.Context, r *proto.UploadRequest) (*proto.UploadReply, error)
type UserService ¶
type UserService struct { proto.UnimplementedUserServiceServer // contains filtered or unexported fields }
func NewUserService ¶
func NewUserService(ctx context.Context) UserService
func (UserService) EditUser ¶
func (svc UserService) EditUser(ctx context.Context, r *proto.EditUserRequest) (*proto.EditUserReply, error)
func (UserService) GetUser ¶
func (svc UserService) GetUser(ctx context.Context, r *proto.GetUserRequest) (*proto.GetUserReply, error)
func (UserService) Login ¶
func (svc UserService) Login(ctx context.Context, r *proto.LoginRequest) (*proto.LoginReply, error)
func (UserService) Register ¶
func (svc UserService) Register(ctx context.Context, r *proto.RegisterRequest) (*proto.RegisterReply, error)
func (UserService) UpdateUserCache ¶
func (svc UserService) UpdateUserCache(username string) error
Click to show internal directories.
Click to hide internal directories.