Documentation ¶
Index ¶
- type Passport
- func (p *Passport) Auth(ctx context.Context, req *pb.AuthReq) (*pb.Token, error)
- func (p *Passport) Exist(ctx context.Context, req *wrapperspb.StringValue) (*wrapperspb.BoolValue, error)
- func (p *Passport) Get(ctx context.Context, req *wrapperspb.StringValue) (*pb.User, error)
- func (p *Passport) Lock(ctx context.Context, req *wrapperspb.StringValue) (*emptypb.Empty, error)
- func (p *Passport) ModifyPassword(ctx context.Context, req *pb.ModifyPasswordReq) (*emptypb.Empty, error)
- func (p *Passport) Register(ctx context.Context, req *pb.RegisterReq) (*wrapperspb.StringValue, error)
- func (p *Passport) Remove(ctx context.Context, req *wrapperspb.StringValue) (*emptypb.Empty, error)
- func (p *Passport) RenewToken(ctx context.Context, req *pb.Token) (*pb.Token, error)
- func (p *Passport) RevokeToken(ctx context.Context, req *pb.Token) (*emptypb.Empty, error)
- func (p *Passport) Service() func(*grpc.Server)
- func (p *Passport) Unlock(ctx context.Context, req *wrapperspb.StringValue) (*emptypb.Empty, error)
- func (p *Passport) VerifyToken(ctx context.Context, req *pb.Token) (*emptypb.Empty, error)
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) Exist ¶
func (p *Passport) Exist(ctx context.Context, req *wrapperspb.StringValue) (*wrapperspb.BoolValue, error)
func (*Passport) Get ¶
func (p *Passport) Get(ctx context.Context, req *wrapperspb.StringValue) (*pb.User, error)
func (*Passport) Lock ¶
func (p *Passport) Lock(ctx context.Context, req *wrapperspb.StringValue) (*emptypb.Empty, error)
func (*Passport) ModifyPassword ¶
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 (*Passport) RevokeToken ¶
func (*Passport) Unlock ¶
func (p *Passport) Unlock(ctx context.Context, req *wrapperspb.StringValue) (*emptypb.Empty, error)
Click to show internal directories.
Click to hide internal directories.