platform

package
v1.20.2-dexcom-api-g5m... Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2017 License: BSD-3-Clause Imports: 9 Imported by: 12

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	*client.Client
	// contains filtered or unexported fields
}

func NewClient

func NewClient(cfg *Config) (*Client, error)

func (*Client) HTTPClient

func (c *Client) HTTPClient() *http.Client

func (*Client) SendRequestAsServer

func (c *Client) SendRequestAsServer(ctx context.Context, method string, url string, mutators []client.Mutator, requestBody interface{}, responseBody interface{}) error

func (*Client) SendRequestAsUser

func (c *Client) SendRequestAsUser(ctx context.Context, method string, url string, mutators []client.Mutator, requestBody interface{}, responseBody interface{}) error

type Config

type Config struct {
	*client.Config
	Timeout       time.Duration
	ServiceSecret string
}

func NewConfig

func NewConfig() *Config

func (*Config) Load

func (c *Config) Load(configReporter config.Reporter) error

func (*Config) Validate

func (c *Config) Validate() error

type RestrictedTokenParameterMutator

type RestrictedTokenParameterMutator struct {
	*client.ParameterMutator
}

func NewRestrictedTokenParameterMutator

func NewRestrictedTokenParameterMutator(restrictedToken string) *RestrictedTokenParameterMutator

func (*RestrictedTokenParameterMutator) Mutate

type ServiceSecretHeaderMutator

type ServiceSecretHeaderMutator struct {
	*client.HeaderMutator
}

func NewServiceSecretHeaderMutator

func NewServiceSecretHeaderMutator(serviceSecret string) *ServiceSecretHeaderMutator

func (*ServiceSecretHeaderMutator) Mutate

func (s *ServiceSecretHeaderMutator) Mutate(req *http.Request) error

type SessionTokenHeaderMutator

type SessionTokenHeaderMutator struct {
	*client.HeaderMutator
}

func NewSessionTokenHeaderMutator

func NewSessionTokenHeaderMutator(sessionToken string) *SessionTokenHeaderMutator

func (*SessionTokenHeaderMutator) Mutate

func (s *SessionTokenHeaderMutator) Mutate(req *http.Request) error

type TraceMutator

type TraceMutator struct {
	Context context.Context
}

func NewTraceMutator

func NewTraceMutator(ctx context.Context) *TraceMutator

func (*TraceMutator) Mutate

func (t *TraceMutator) Mutate(req *http.Request) error

Jump to

Keyboard shortcuts

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