service

package
v0.0.0-...-f780273 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2025 License: MIT Imports: 6 Imported by: 0

README

Service

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ProviderSet = wire.NewSet(NewAuthService)

ProviderSet is service providers.

Functions

This section is empty.

Types

type AuthService

type AuthService struct {
	pb.UnimplementedAuthServer
	// contains filtered or unexported fields
}

func NewAuthService

func NewAuthService(
	logger log.Logger,
	cdata *conf.Data,
	biz *biz.AuthBiz,
) *AuthService

func (*AuthService) Auth

func (s *AuthService) Auth(ctx context.Context, req *pb.AuthReq) (*pb.AuthReply, error)

func (*AuthService) Callback

func (s *AuthService) Callback(ctx context.Context, req *pb.CallbackReq) (*pb.UserSimple, error)

func (*AuthService) GetPermissions

func (s *AuthService) GetPermissions(ctx context.Context, req *pb.PermissionsReq) (rsp *pb.PermissionsReply, err error)

func (*AuthService) GetPublicContent

func (s *AuthService) GetPublicContent(ctx context.Context, req *pb.PublicContentReq) (rsp *pb.PublicContentReply, err error)

func (*AuthService) Login

func (s *AuthService) Login(ctx context.Context, req *pb.LoginReq) (*pb.User, error)

func (*AuthService) Logout

func (s *AuthService) Logout(ctx context.Context, req *pb.LogoutReq) (*pb.LogoutReply, error)

Jump to

Keyboard shortcuts

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