Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrMissingCallbackParam = errors.New("missing code or state param")
)
View Source
var ErrSearch = errors.New("failed to receive search response")
View Source
var ErrTokenRequestFailed = errors.New("token request failed")
Functions ¶
This section is empty.
Types ¶
type Callback ¶
func NewCallback ¶
type SearchClient ¶
type SearchClient struct{ Client }
func (*SearchClient) Search ¶
func (client *SearchClient) Search(ctx context.Context, req api.SearchRequest) (*api.SearchResponse, error)
type TokenHandler ¶
func NewTokenHandler ¶
func NewTokenHandler(opts *Options) *TokenHandler
func (*TokenHandler) AuthorizeServer ¶
func (*TokenHandler) ExchangeCode ¶
type UserClient ¶
type UserClient struct{ Client }
func NewUserClient ¶
func NewUserClient(token *api.Token, handler *TokenHandler) *UserClient
func (*UserClient) GetCurrentUser ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.