server

package
v0.0.0-...-378a548 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GRPC

type GRPC struct {
	EtcdClient *clientv3.Client
	Host       string
	Port       int
	AppName    string

	pb.UnimplementedPassportServer
	// contains filtered or unexported fields
}

func (*GRPC) Auth

func (g *GRPC) Auth(ctx context.Context, req *pb.AuthReq) (*pb.Token, error)

func (*GRPC) Exist

func (*GRPC) Get

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

func (*GRPC) Lock

func (g *GRPC) Lock(ctx context.Context, req *wrapperspb.StringValue) (*emptypb.Empty, error)

func (*GRPC) ModifyPassword

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

func (*GRPC) Register

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

func (*GRPC) Remove

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

func (*GRPC) RenewToken

func (g *GRPC) RenewToken(ctx context.Context, req *pb.Token) (*pb.Token, error)

func (*GRPC) RevokeToken

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

func (*GRPC) Startup

func (g *GRPC) Startup() error

func (*GRPC) Stop

func (g *GRPC) Stop() error

func (*GRPC) Unlock

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

func (*GRPC) VerifyToken

func (g *GRPC) 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