client

package
v1.12.0 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2017 License: BSD-3-Clause Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const TidepoolAuthenticationTokenHeaderName = "X-Tidepool-Session-Token"

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client interface {
	DestroyDataForUserByID(context Context, userID string) error
}

type Config

type Config struct {
	Address        string `json:"address"`
	RequestTimeout int    `json:"requestTimeout"`
}

func (*Config) Clone

func (c *Config) Clone() *Config

func (*Config) Validate

func (c *Config) Validate() error

type Context

type Context interface {
	Logger() log.Logger
	Request() *rest.Request
	UserServicesClient() client.Client
}

type Standard

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

func NewStandard

func NewStandard(config *Config) (*Standard, error)

func (*Standard) DestroyDataForUserByID

func (s *Standard) DestroyDataForUserByID(context Context, userID string) error

Jump to

Keyboard shortcuts

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