Documentation ¶
Index ¶
- Constants
- type AuthData
- func (*AuthData) Descriptor() ([]byte, []int)
- func (m *AuthData) GetExpireAt() int64
- func (m *AuthData) GetMessage() string
- func (m *AuthData) GetOrgID() string
- func (m *AuthData) GetRefreshToken() string
- func (m *AuthData) GetToken() string
- func (m *AuthData) GetUserAccess() *UserAccess
- func (m *AuthData) GetUserID() string
- func (*AuthData) ProtoMessage()
- func (m *AuthData) Reset()
- func (m *AuthData) String() string
- func (m *AuthData) XXX_DiscardUnknown()
- func (m *AuthData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *AuthData) XXX_Merge(src proto.Message)
- func (m *AuthData) XXX_Size() int
- func (m *AuthData) XXX_Unmarshal(b []byte) error
- type AuthResponse
- func (*AuthResponse) Descriptor() ([]byte, []int)
- func (m *AuthResponse) GetAuthData() *AuthData
- func (*AuthResponse) ProtoMessage()
- func (m *AuthResponse) Reset()
- func (m *AuthResponse) String() string
- func (m *AuthResponse) XXX_DiscardUnknown()
- func (m *AuthResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *AuthResponse) XXX_Merge(src proto.Message)
- func (m *AuthResponse) XXX_Size() int
- func (m *AuthResponse) XXX_Unmarshal(b []byte) error
- type CoreRequest
- func (*CoreRequest) Descriptor() ([]byte, []int)
- func (m *CoreRequest) GetPassword() string
- func (m *CoreRequest) GetRefreshToken() string
- func (m *CoreRequest) GetToken() string
- func (m *CoreRequest) GetUserID() string
- func (*CoreRequest) ProtoMessage()
- func (m *CoreRequest) Reset()
- func (m *CoreRequest) String() string
- func (m *CoreRequest) XXX_DiscardUnknown()
- func (m *CoreRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *CoreRequest) XXX_Merge(src proto.Message)
- func (m *CoreRequest) XXX_Size() int
- func (m *CoreRequest) XXX_Unmarshal(b []byte) error
- type UserAccess
- func (*UserAccess) Descriptor() ([]byte, []int)
- func (m *UserAccess) GetPermission() []string
- func (m *UserAccess) GetRole() string
- func (*UserAccess) ProtoMessage()
- func (m *UserAccess) Reset()
- func (m *UserAccess) String() string
- func (m *UserAccess) XXX_DiscardUnknown()
- func (m *UserAccess) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *UserAccess) XXX_Merge(src proto.Message)
- func (m *UserAccess) XXX_Size() int
- func (m *UserAccess) XXX_Unmarshal(b []byte) error
Constants ¶
View Source
const (
// AuthService service name for user
AuthService = "go.micro.srv.auth"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthData ¶
type AuthData struct { UserID string `protobuf:"bytes,1,opt,name=userID,proto3" json:"userID,omitempty"` Token string `protobuf:"bytes,2,opt,name=token,proto3" json:"token,omitempty"` RefreshToken string `protobuf:"bytes,3,opt,name=refreshToken,proto3" json:"refreshToken,omitempty"` ExpireAt int64 `protobuf:"varint,4,opt,name=expireAt,proto3" json:"expireAt,omitempty"` UserAccess *UserAccess `protobuf:"bytes,5,opt,name=userAccess,proto3" json:"userAccess,omitempty"` Message string `protobuf:"bytes,6,opt,name=message,proto3" json:"message,omitempty"` OrgID string `protobuf:"bytes,7,opt,name=orgID,proto3" json:"orgID,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*AuthData) Descriptor ¶
func (*AuthData) GetExpireAt ¶
func (*AuthData) GetMessage ¶
func (*AuthData) GetRefreshToken ¶
func (*AuthData) GetUserAccess ¶
func (m *AuthData) GetUserAccess() *UserAccess
func (*AuthData) ProtoMessage ¶
func (*AuthData) ProtoMessage()
func (*AuthData) XXX_DiscardUnknown ¶
func (m *AuthData) XXX_DiscardUnknown()
func (*AuthData) XXX_Marshal ¶
func (*AuthData) XXX_Unmarshal ¶
type AuthResponse ¶
type AuthResponse struct { AuthData *AuthData `protobuf:"bytes,1,opt,name=authData,proto3" json:"authData,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func AuthorizeToken ¶
func AuthorizeToken(token, authServiceAddress string, isUsingK8s bool) (*AuthResponse, error)
AuthorizeToken ..
func (*AuthResponse) Descriptor ¶
func (*AuthResponse) Descriptor() ([]byte, []int)
func (*AuthResponse) GetAuthData ¶
func (m *AuthResponse) GetAuthData() *AuthData
func (*AuthResponse) ProtoMessage ¶
func (*AuthResponse) ProtoMessage()
func (*AuthResponse) Reset ¶
func (m *AuthResponse) Reset()
func (*AuthResponse) String ¶
func (m *AuthResponse) String() string
func (*AuthResponse) XXX_DiscardUnknown ¶
func (m *AuthResponse) XXX_DiscardUnknown()
func (*AuthResponse) XXX_Marshal ¶
func (m *AuthResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*AuthResponse) XXX_Merge ¶
func (m *AuthResponse) XXX_Merge(src proto.Message)
func (*AuthResponse) XXX_Size ¶
func (m *AuthResponse) XXX_Size() int
func (*AuthResponse) XXX_Unmarshal ¶
func (m *AuthResponse) XXX_Unmarshal(b []byte) error
type CoreRequest ¶
type CoreRequest struct { UserID string `protobuf:"bytes,1,opt,name=userID,proto3" json:"userID,omitempty"` Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"` Token string `protobuf:"bytes,3,opt,name=token,proto3" json:"token,omitempty"` RefreshToken string `protobuf:"bytes,4,opt,name=refreshToken,proto3" json:"refreshToken,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*CoreRequest) Descriptor ¶
func (*CoreRequest) Descriptor() ([]byte, []int)
func (*CoreRequest) GetPassword ¶
func (m *CoreRequest) GetPassword() string
func (*CoreRequest) GetRefreshToken ¶
func (m *CoreRequest) GetRefreshToken() string
func (*CoreRequest) GetToken ¶
func (m *CoreRequest) GetToken() string
func (*CoreRequest) GetUserID ¶
func (m *CoreRequest) GetUserID() string
func (*CoreRequest) ProtoMessage ¶
func (*CoreRequest) ProtoMessage()
func (*CoreRequest) Reset ¶
func (m *CoreRequest) Reset()
func (*CoreRequest) String ¶
func (m *CoreRequest) String() string
func (*CoreRequest) XXX_DiscardUnknown ¶
func (m *CoreRequest) XXX_DiscardUnknown()
func (*CoreRequest) XXX_Marshal ¶
func (m *CoreRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*CoreRequest) XXX_Merge ¶
func (m *CoreRequest) XXX_Merge(src proto.Message)
func (*CoreRequest) XXX_Size ¶
func (m *CoreRequest) XXX_Size() int
func (*CoreRequest) XXX_Unmarshal ¶
func (m *CoreRequest) XXX_Unmarshal(b []byte) error
type UserAccess ¶
type UserAccess struct { Role string `protobuf:"bytes,1,opt,name=role,proto3" json:"role,omitempty"` Permission []string `protobuf:"bytes,2,rep,name=permission,proto3" json:"permission,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*UserAccess) Descriptor ¶
func (*UserAccess) Descriptor() ([]byte, []int)
func (*UserAccess) GetPermission ¶
func (m *UserAccess) GetPermission() []string
func (*UserAccess) GetRole ¶
func (m *UserAccess) GetRole() string
func (*UserAccess) ProtoMessage ¶
func (*UserAccess) ProtoMessage()
func (*UserAccess) Reset ¶
func (m *UserAccess) Reset()
func (*UserAccess) String ¶
func (m *UserAccess) String() string
func (*UserAccess) XXX_DiscardUnknown ¶
func (m *UserAccess) XXX_DiscardUnknown()
func (*UserAccess) XXX_Marshal ¶
func (m *UserAccess) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*UserAccess) XXX_Merge ¶
func (m *UserAccess) XXX_Merge(src proto.Message)
func (*UserAccess) XXX_Size ¶
func (m *UserAccess) XXX_Size() int
func (*UserAccess) XXX_Unmarshal ¶
func (m *UserAccess) XXX_Unmarshal(b []byte) error
Click to show internal directories.
Click to hide internal directories.