session

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2021 License: Apache-2.0 Imports: 6 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Option

type Option interface {
	Apply(*Session)
}

func WithClientId

func WithClientId(v string) Option

func WithClientSecret

func WithClientSecret(v string) Option

func WithGrantType

func WithGrantType(v string) Option

func WithHttpClient

func WithHttpClient(v *http.Client) Option

func WithLoginUrl

func WithLoginUrl(v string) Option

func WithPassword

func WithPassword(v string) Option

func WithScope

func WithScope(v string) Option

func WithUsername

func WithUsername(v string) Option

type Session

type Session struct {
	// contains filtered or unexported fields
}

func New

func New(o ...Option) *Session

func (*Session) AccessToken

func (s *Session) AccessToken() (string, error)

Jump to

Keyboard shortcuts

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