Versions in this module Expand all Collapse all v0 v0.2.1 Oct 26, 2017 v0.2.0 Oct 23, 2017 Changes in this version + const DefaultIdleTimeout + const DefaultListenAddr + const DefaultReadHeaderTimeout + const DefaultReadTimeout + const DefaultWriteTimeout + type API struct + func NewAPI(cfg *Config) (*API, error) + func (api *API) SetClient(c *rpc.Client) + func (api *API) Shutdown() error + type Config struct + BasicAuthCreds map[string]string + IdleTimeout time.Duration + ListenAddr ma.Multiaddr + ReadHeaderTimeout time.Duration + ReadTimeout time.Duration + TLS *tls.Config + WriteTimeout time.Duration + func (cfg *Config) ConfigKey() string + func (cfg *Config) Default() error + func (cfg *Config) LoadJSON(raw []byte) error + func (cfg *Config) ToJSON() (raw []byte, err error) + func (cfg *Config) Validate() error