inmemory

package
v5.10.1+incompatible Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2019 License: MIT, MIT, MIT, + 1 more Imports: 2 Imported by: 8

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

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

Config describes details associated with making requests

func New

func New(url string) *Config

New returns new instance of a config

func (*Config) APIUrl

func (c *Config) APIUrl() string

APIUrl describes the URL where the API can be found

func (*Config) Format

func (c *Config) Format() string

Format describes the expected output from the client

func (*Config) Namespace

func (c *Config) Namespace() string

Namespace describes the context of the request

func (*Config) SaveAPIUrl

func (c *Config) SaveAPIUrl(val string) error

SaveAPIUrl updates the current value

func (*Config) SaveFormat

func (c *Config) SaveFormat(val string) error

SaveFormat updates the current value

func (*Config) SaveNamespace

func (c *Config) SaveNamespace(val string) error

SaveNamespace updates the current value

func (*Config) SaveTokens

func (c *Config) SaveTokens(val *types.Tokens) error

SaveTokens updates the current value

func (*Config) Tokens

func (c *Config) Tokens() *types.Tokens

Tokens describes the authorization tokens used to make requests

Jump to

Keyboard shortcuts

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