user

package
v0.0.0-...-fff4dcd Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 19, 2020 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	ClientID     string
	ClientSecret string
	Provider     Provider
}

Client main struct

func New

func New(id, secret string) *Client

New creates a new instance of Client

func (*Client) AccountDetails

func (c *Client) AccountDetails(token string) *User

AccountDetails ...

type Provider

type Provider interface {
	GetUser(*cip.GetUserInput) (*cip.GetUserOutput, error)
}

Provider ...

type User

type User struct {
	ID       string
	Bio      string
	Name     string
	Email    string
	Location string
	Website  string
	Picture  string
	Username string
}

User ...

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL