controller

package
v0.0.0-...-fb1bee7 Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2025 License: Apache-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 Passport

type Passport struct {
	pb.UnimplementedPassportServer
}

func NewPassport

func NewPassport() *Passport

func (*Passport) Auth

func (p *Passport) Auth(ctx context.Context, req *pb.AuthReq) (*pb.Token, error)

func (*Passport) Exist

func (*Passport) Get

func (p *Passport) Get(ctx context.Context, req *wrapperspb.StringValue) (*pb.User, error)

func (*Passport) Lock

func (*Passport) ModifyPassword

func (p *Passport) ModifyPassword(ctx context.Context, req *pb.ModifyPasswordReq) (*emptypb.Empty, error)

func (*Passport) Register

func (p *Passport) Register(ctx context.Context, req *pb.RegisterReq) (*wrapperspb.StringValue, error)

func (*Passport) Remove

func (p *Passport) Remove(ctx context.Context, req *wrapperspb.StringValue) (*emptypb.Empty, error)

func (*Passport) RenewToken

func (p *Passport) RenewToken(ctx context.Context, req *pb.Token) (*pb.Token, error)

func (*Passport) RevokeToken

func (p *Passport) RevokeToken(ctx context.Context, req *pb.Token) (*emptypb.Empty, error)

func (*Passport) Service

func (p *Passport) Service() func(*grpc.Server)

func (*Passport) Unlock

func (p *Passport) Unlock(ctx context.Context, req *wrapperspb.StringValue) (*emptypb.Empty, error)

func (*Passport) VerifyToken

func (p *Passport) VerifyToken(ctx context.Context, req *pb.Token) (*emptypb.Empty, error)

Jump to

Keyboard shortcuts

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