Documentation ¶
Index ¶
- Variables
- type AdminService
- func (s *AdminService) CreateGroup(ctx context.Context, req *v1.CreateGroupRequest) (*v1.Group, error)
- func (s *AdminService) DeleteGroup(ctx context.Context, req *v1.DeleteGroupRequest) (*emptypb.Empty, error)
- func (s *AdminService) GetGroup(ctx context.Context, req *v1.GetGroupRequest) (*v1.Group, error)
- func (s *AdminService) ListGroups(ctx context.Context, req *v1.ListGroupsRequest) (*v1.ListGroupsReply, error)
- func (s *AdminService) ListUsers(ctx context.Context, req *v1.ListUsersRequest) (*v1.ListUsersReply, error)
- func (s *AdminService) UpdateGroup(ctx context.Context, req *v1.UpdateGroupRequest) (*v1.Group, error)
- type SiteService
- type UserService
- func (s *UserService) DeleteUser(ctx context.Context, req *v1.DeleteUserRequest) (*emptypb.Empty, error)
- func (s *UserService) GetUser(ctx context.Context, req *v1.GetUserRequest) (*v1.User, error)
- func (s *UserService) SignOut(ctx context.Context, _ *emptypb.Empty) (*emptypb.Empty, error)
- func (s *UserService) SigninA(ctx context.Context, req *v1.SigninARequest) (*v1.SigninAReply, error)
- func (s *UserService) SigninM(ctx context.Context, req *v1.SigninMRequest) (*emptypb.Empty, error)
- func (s *UserService) SigninS(ctx context.Context, req *v1.SigninSRequest) (*v1.SigninSReply, error)
- func (s *UserService) Signup(ctx context.Context, req *v1.SignupRequest) (*emptypb.Empty, error)
- func (s *UserService) UpdateUser(ctx context.Context, req *v1.UpdateUserRequest) (*v1.User, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ProviderSet = wire.NewSet( NewSiteService, NewUserService, NewAdminService, )
ProviderSet is service providers.
Functions ¶
This section is empty.
Types ¶
type AdminService ¶
type AdminService struct { v1.UnimplementedAdminServiceServer // contains filtered or unexported fields }
func NewAdminService ¶
func NewAdminService(store *sessions.RedisStore, gu *biz.GroupUsecase, uu *biz.UserUsecase, logger log.Logger) *AdminService
func (*AdminService) CreateGroup ¶
func (s *AdminService) CreateGroup(ctx context.Context, req *v1.CreateGroupRequest) (*v1.Group, error)
func (*AdminService) DeleteGroup ¶
func (s *AdminService) DeleteGroup(ctx context.Context, req *v1.DeleteGroupRequest) (*emptypb.Empty, error)
func (*AdminService) GetGroup ¶
func (s *AdminService) GetGroup(ctx context.Context, req *v1.GetGroupRequest) (*v1.Group, error)
func (*AdminService) ListGroups ¶
func (s *AdminService) ListGroups(ctx context.Context, req *v1.ListGroupsRequest) (*v1.ListGroupsReply, error)
func (*AdminService) ListUsers ¶
func (s *AdminService) ListUsers(ctx context.Context, req *v1.ListUsersRequest) (*v1.ListUsersReply, error)
func (*AdminService) UpdateGroup ¶
func (s *AdminService) UpdateGroup(ctx context.Context, req *v1.UpdateGroupRequest) (*v1.Group, error)
type SiteService ¶
type SiteService struct { v1.UnimplementedSiteServiceServer // contains filtered or unexported fields }
func NewSiteService ¶
func NewSiteService(version string, logger log.Logger) *SiteService
type UserService ¶
type UserService struct { v1.UnimplementedUserServiceServer // contains filtered or unexported fields }
func NewUserService ¶
func NewUserService(store *sessions.RedisStore, uu *biz.UserUsecase, logger log.Logger) *UserService
func (*UserService) DeleteUser ¶
func (s *UserService) DeleteUser(ctx context.Context, req *v1.DeleteUserRequest) (*emptypb.Empty, error)
func (*UserService) GetUser ¶
func (s *UserService) GetUser(ctx context.Context, req *v1.GetUserRequest) (*v1.User, error)
func (*UserService) SigninA ¶
func (s *UserService) SigninA(ctx context.Context, req *v1.SigninARequest) (*v1.SigninAReply, error)
func (*UserService) SigninM ¶
func (s *UserService) SigninM(ctx context.Context, req *v1.SigninMRequest) (*emptypb.Empty, error)
func (*UserService) SigninS ¶
func (s *UserService) SigninS(ctx context.Context, req *v1.SigninSRequest) (*v1.SigninSReply, error)
func (*UserService) Signup ¶
func (s *UserService) Signup(ctx context.Context, req *v1.SignupRequest) (*emptypb.Empty, error)
func (*UserService) UpdateUser ¶
func (s *UserService) UpdateUser(ctx context.Context, req *v1.UpdateUserRequest) (*v1.User, error)
Click to show internal directories.
Click to hide internal directories.