auth

package
v0.0.0-...-2d9c92e Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2023 License: MPL-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LogLogic

type LogLogic struct {
	logx.Logger
	// contains filtered or unexported fields
}

func NewLogLogic

func NewLogLogic(ctx context.Context, svcCtx *svc.ServiceContext) *LogLogic

func (*LogLogic) GenToken

func (l *LogLogic) GenToken(iat int64, secretKey string, payloads map[string]interface{}, seconds int64) (string, error)

func (*LogLogic) Log

func (l *LogLogic) Log(req *types.LogReq) (resp *types.LogResp, err error)

type RegLogic

type RegLogic struct {
	logx.Logger
	// contains filtered or unexported fields
}

func NewRegLogic

func NewRegLogic(ctx context.Context, svcCtx *svc.ServiceContext) *RegLogic

func (*RegLogic) Reg

func (l *RegLogic) Reg(req *types.RegReq) (resp *types.RegResp, err error)

Jump to

Keyboard shortcuts

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