service

package
v0.0.0-...-29cb976 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 2, 2023 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

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

func (*SiteService) Ping

func (s *SiteService) Ping(ctx context.Context, req *emptypb.Empty) (*v1.PingReply, error)

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) SignOut

func (s *UserService) SignOut(ctx context.Context, _ *emptypb.Empty) (*emptypb.Empty, 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)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL