config

package
v2.3.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2017 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Scope      string            `yaml:"scope"`
	NamePrefix string            `yaml:"namePrefix"`
	Connector  dosa.CreationArgs `yaml:"connector"`
	Yarpc      *yarpc.Config     `yaml:"yarpc"`
	Timeout    *TimeoutConfig    `yaml:"timeout"`
}

Config represents the settings for the dosa client

func NewDefaultConfig

func NewDefaultConfig() Config

NewDefaultConfig returns a configuration instance with all default values

func (Config) NewClient

func (c Config) NewClient(entities ...dosa.DomainObject) (dosa.Client, error)

NewClient creates a DOSA client based on the configuration

type TimeoutConfig

type TimeoutConfig struct {
	CreateIfNotExists time.Duration `yaml:"createIfNotExists"`
	Initialize        time.Duration `yaml:"initialize"`
	Range             time.Duration `yaml:"range"`
	Read              time.Duration `yaml:"read"`
	Remove            time.Duration `yaml:"remove"`
	ScanEverything    time.Duration `yaml:"scanEverything"`
	Search            time.Duration `yaml:"search"`
	Upsert            time.Duration `yaml:"upsert"`
}

TimeoutConfig holds timeout values for all DOSA operations

Jump to

Keyboard shortcuts

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