Documentation
¶
Overview ¶
Package world provides info on HSDP services
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 holds the state of a Config instance
func New ¶
func New(opts ...OptionFunc) (*Config, error)
New returns a Config Instance. You can pass a list OptionFunc to cater the Config to your needs
type Environment ¶ added in v0.26.0
type OptionFunc ¶
func FromReader ¶
func FromReader(reader io.Reader) OptionFunc
FromReader option specifies the JSON source to read If this option is not provided the canonical source hosted on Github will be used. See CanonicalURL
func WithEnv ¶
func WithEnv(env string) OptionFunc
WithEnv sets the environment of the newly created Config instance
func WithRegion ¶
func WithRegion(region string) OptionFunc
WithRegion sets the region of the newly created Config instance
type Region ¶ added in v0.26.0
type Region struct { Environments map[string]Environment `json:"env,omitempty"` Services map[string]Service `json:"service,omitempty"` }
Click to show internal directories.
Click to hide internal directories.