Versions in this module Expand all Collapse all v1 v1.0.1 May 10, 2021 v1.0.0 May 9, 2021 Changes in this version + func RegisterAuthHandler(s server.Server, hdlr AuthHandler, opts ...server.HandlerOption) error + type Account struct + Created int64 + Expiry int64 + Id string + Metadata map[string]string + Roles []*Role + Token string + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func (*Account) Descriptor() ([]byte, []int) + func (*Account) ProtoMessage() + func (m *Account) GetCreated() int64 + func (m *Account) GetExpiry() int64 + func (m *Account) GetId() string + func (m *Account) GetMetadata() map[string]string + func (m *Account) GetRoles() []*Role + func (m *Account) GetToken() string + func (m *Account) Reset() + func (m *Account) String() string + func (m *Account) XXX_DiscardUnknown() + func (m *Account) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *Account) XXX_Merge(src proto.Message) + func (m *Account) XXX_Size() int + func (m *Account) XXX_Unmarshal(b []byte) error + type AuthHandler interface + Generate func(context.Context, *GenerateRequest, *GenerateResponse) error + Revoke func(context.Context, *RevokeRequest, *RevokeResponse) error + Verify func(context.Context, *VerifyRequest, *VerifyResponse) error + type AuthService interface + Generate func(ctx context.Context, in *GenerateRequest, opts ...client.CallOption) (*GenerateResponse, error) + Revoke func(ctx context.Context, in *RevokeRequest, opts ...client.CallOption) (*RevokeResponse, error) + Verify func(ctx context.Context, in *VerifyRequest, opts ...client.CallOption) (*VerifyResponse, error) + func NewAuthService(name string, c client.Client) AuthService + type GenerateRequest struct + Account *Account + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func (*GenerateRequest) Descriptor() ([]byte, []int) + func (*GenerateRequest) ProtoMessage() + func (m *GenerateRequest) GetAccount() *Account + func (m *GenerateRequest) Reset() + func (m *GenerateRequest) String() string + func (m *GenerateRequest) XXX_DiscardUnknown() + func (m *GenerateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *GenerateRequest) XXX_Merge(src proto.Message) + func (m *GenerateRequest) XXX_Size() int + func (m *GenerateRequest) XXX_Unmarshal(b []byte) error + type GenerateResponse struct + Account *Account + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func (*GenerateResponse) Descriptor() ([]byte, []int) + func (*GenerateResponse) ProtoMessage() + func (m *GenerateResponse) GetAccount() *Account + func (m *GenerateResponse) Reset() + func (m *GenerateResponse) String() string + func (m *GenerateResponse) XXX_DiscardUnknown() + func (m *GenerateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *GenerateResponse) XXX_Merge(src proto.Message) + func (m *GenerateResponse) XXX_Size() int + func (m *GenerateResponse) XXX_Unmarshal(b []byte) error + type Resource struct + Name string + Type string + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func (*Resource) Descriptor() ([]byte, []int) + func (*Resource) ProtoMessage() + func (m *Resource) GetName() string + func (m *Resource) GetType() string + func (m *Resource) Reset() + func (m *Resource) String() string + func (m *Resource) XXX_DiscardUnknown() + func (m *Resource) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *Resource) XXX_Merge(src proto.Message) + func (m *Resource) XXX_Size() int + func (m *Resource) XXX_Unmarshal(b []byte) error + type RevokeRequest struct + Token string + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func (*RevokeRequest) Descriptor() ([]byte, []int) + func (*RevokeRequest) ProtoMessage() + func (m *RevokeRequest) GetToken() string + func (m *RevokeRequest) Reset() + func (m *RevokeRequest) String() string + func (m *RevokeRequest) XXX_DiscardUnknown() + func (m *RevokeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *RevokeRequest) XXX_Merge(src proto.Message) + func (m *RevokeRequest) XXX_Size() int + func (m *RevokeRequest) XXX_Unmarshal(b []byte) error + type RevokeResponse struct + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func (*RevokeResponse) Descriptor() ([]byte, []int) + func (*RevokeResponse) ProtoMessage() + func (m *RevokeResponse) Reset() + func (m *RevokeResponse) String() string + func (m *RevokeResponse) XXX_DiscardUnknown() + func (m *RevokeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *RevokeResponse) XXX_Merge(src proto.Message) + func (m *RevokeResponse) XXX_Size() int + func (m *RevokeResponse) XXX_Unmarshal(b []byte) error + type Role struct + Name string + Resource *Resource + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func (*Role) Descriptor() ([]byte, []int) + func (*Role) ProtoMessage() + func (m *Role) GetName() string + func (m *Role) GetResource() *Resource + func (m *Role) Reset() + func (m *Role) String() string + func (m *Role) XXX_DiscardUnknown() + func (m *Role) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *Role) XXX_Merge(src proto.Message) + func (m *Role) XXX_Size() int + func (m *Role) XXX_Unmarshal(b []byte) error + type VerifyRequest struct + Token string + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func (*VerifyRequest) Descriptor() ([]byte, []int) + func (*VerifyRequest) ProtoMessage() + func (m *VerifyRequest) GetToken() string + func (m *VerifyRequest) Reset() + func (m *VerifyRequest) String() string + func (m *VerifyRequest) XXX_DiscardUnknown() + func (m *VerifyRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *VerifyRequest) XXX_Merge(src proto.Message) + func (m *VerifyRequest) XXX_Size() int + func (m *VerifyRequest) XXX_Unmarshal(b []byte) error + type VerifyResponse struct + Account *Account + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func (*VerifyResponse) Descriptor() ([]byte, []int) + func (*VerifyResponse) ProtoMessage() + func (m *VerifyResponse) GetAccount() *Account + func (m *VerifyResponse) Reset() + func (m *VerifyResponse) String() string + func (m *VerifyResponse) XXX_DiscardUnknown() + func (m *VerifyResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *VerifyResponse) XXX_Merge(src proto.Message) + func (m *VerifyResponse) XXX_Size() int + func (m *VerifyResponse) XXX_Unmarshal(b []byte) error Incompatible versions in this module v2.3.0+incompatible May 9, 2021