Documentation ¶
Index ¶
- type Client
- type CustomType
- func (*CustomType) Descriptor() ([]byte, []int)
- func (*CustomType) ProtoMessage()
- func (m *CustomType) Reset()
- func (m *CustomType) Size() (n int)
- func (m *CustomType) String() string
- func (m *CustomType) XXX_DiscardUnknown()
- func (m *CustomType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *CustomType) XXX_Merge(src proto.Message)
- func (m *CustomType) XXX_Size() int
- func (m *CustomType) XXX_Unmarshal(b []byte) error
- type Options
- func (*Options) Descriptor() ([]byte, []int)
- func (m *Options) GetApiUrl() string
- func (m *Options) GetAuthUrl() string
- func (m *Options) GetAutoLogin() bool
- func (m *Options) GetAutoRedirect() bool
- func (m *Options) GetAvatarAttributePath() string
- func (m *Options) GetClientId() string
- func (m *Options) GetEmailAttributePath() string
- func (m *Options) GetFullNameAttributePath() string
- func (m *Options) GetIcon() string
- func (m *Options) GetId() string
- func (m *Options) GetLoginId() string
- func (m *Options) GetName() string
- func (m *Options) GetPhoneNumberAttributePath() string
- func (x *Options) GetRedirectURL(ctx context.Context, oriRedirectURI string) (*url.URL, error)
- func (m *Options) GetRoleAttributePath() string
- func (m *Options) GetScope() string
- func (m *Options) GetTokenUrl() string
- func (m *Options) GetUsernameAttributePath() string
- func (*Options) ProtoMessage()
- func (m *Options) Reset()
- func (m *Options) Size() (n int)
- func (m *Options) String() string
- func (x *Options) UnmarshalJSONPB(unmarshaller *jsonpb.Unmarshaler, b []byte) error
- func (m *Options) XXX_DiscardUnknown()
- func (m *Options) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Options) XXX_Merge(src proto.Message)
- func (m *Options) XXX_Size() int
- func (m *Options) XXX_Unmarshal(b []byte) error
- type TokenRequest
- type TokenResponse
- type UserInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
type CustomType ¶
type CustomType struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*CustomType) Descriptor ¶
func (*CustomType) Descriptor() ([]byte, []int)
func (*CustomType) ProtoMessage ¶
func (*CustomType) ProtoMessage()
func (*CustomType) Reset ¶
func (m *CustomType) Reset()
func (*CustomType) Size ¶
func (m *CustomType) Size() (n int)
func (*CustomType) String ¶
func (m *CustomType) String() string
func (*CustomType) XXX_DiscardUnknown ¶
func (m *CustomType) XXX_DiscardUnknown()
func (*CustomType) XXX_Marshal ¶
func (m *CustomType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*CustomType) XXX_Merge ¶
func (m *CustomType) XXX_Merge(src proto.Message)
func (*CustomType) XXX_Size ¶
func (m *CustomType) XXX_Size() int
func (*CustomType) XXX_Unmarshal ¶
func (m *CustomType) XXX_Unmarshal(b []byte) error
type Options ¶
type Options struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty" valid:"required"` Icon string `protobuf:"bytes,2,opt,name=icon,proto3" json:"icon,omitempty"` TokenUrl string `protobuf:"bytes,3,opt,name=token_url,json=tokenUrl,proto3" json:"token_url,omitempty" valid:"required,url"` AuthUrl string `protobuf:"bytes,4,opt,name=auth_url,json=authUrl,proto3" json:"auth_url,omitempty" valid:"required,url"` ApiUrl string `protobuf:"bytes,5,opt,name=api_url,json=apiUrl,proto3" json:"api_url,omitempty" valid:"required,url"` ClientId string `protobuf:"bytes,6,opt,name=client_id,json=clientId,proto3" json:"client_id,omitempty" valid:"required"` ClientSecret *github_com_MicroOps_cn_fuck_safe.String `` /* 165-byte string literal not displayed */ AutoLogin bool `protobuf:"varint,8,opt,name=auto_login,json=autoLogin,proto3" json:"auto_login,omitempty"` Id string `protobuf:"bytes,9,opt,name=id,proto3" json:"id,omitempty" valid:"required"` LoginId string `protobuf:"bytes,10,opt,name=login_id,json=loginId,proto3" json:"login_id,omitempty"` EmailAttributePath string `protobuf:"bytes,11,opt,name=email_attribute_path,json=emailAttributePath,proto3" json:"email_attribute_path,omitempty"` UsernameAttributePath string `` /* 127-byte string literal not displayed */ PhoneNumberAttributePath string `` /* 138-byte string literal not displayed */ FullNameAttributePath string `` /* 129-byte string literal not displayed */ RoleAttributePath string `protobuf:"bytes,15,opt,name=role_attribute_path,json=roleAttributePath,proto3" json:"role_attribute_path,omitempty"` AvatarAttributePath string `protobuf:"bytes,16,opt,name=avatar_attribute_path,json=avatarAttributePath,proto3" json:"avatar_attribute_path,omitempty"` Scope string `protobuf:"bytes,17,opt,name=scope,proto3" json:"scope,omitempty"` AutoRedirect bool `protobuf:"varint,18,opt,name=auto_redirect,json=autoRedirect,proto3" json:"auto_redirect,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func NewOptions ¶
func NewOptions() *Options
NewOptions return a default option which host field point to nowhere.
func (*Options) Descriptor ¶
func (*Options) GetAuthUrl ¶
func (*Options) GetAutoLogin ¶
func (*Options) GetAutoRedirect ¶
func (*Options) GetAvatarAttributePath ¶
func (*Options) GetClientId ¶
func (*Options) GetEmailAttributePath ¶
func (*Options) GetFullNameAttributePath ¶
func (*Options) GetLoginId ¶
func (*Options) GetPhoneNumberAttributePath ¶
func (*Options) GetRedirectURL ¶
func (*Options) GetRoleAttributePath ¶
func (*Options) GetTokenUrl ¶
func (*Options) GetUsernameAttributePath ¶
func (*Options) ProtoMessage ¶
func (*Options) ProtoMessage()
func (*Options) UnmarshalJSONPB ¶
func (x *Options) UnmarshalJSONPB(unmarshaller *jsonpb.Unmarshaler, b []byte) error
func (*Options) XXX_DiscardUnknown ¶
func (m *Options) XXX_DiscardUnknown()
func (*Options) XXX_Marshal ¶
func (*Options) XXX_Unmarshal ¶
type TokenRequest ¶
type TokenResponse ¶
Click to show internal directories.
Click to hide internal directories.