Versions in this module Expand all Collapse all v9 v9.0.0 Oct 3, 2024 Changes in this version + const DefaultConfigFile + const DefaultSection + const MaxBodySize + var ErrHostContainsSlashAtTheEnd = errors.New("host must not contain '/' at the end") + var ErrLoadingFile = errors.New("loading config file") + var ErrRequiredOptionEdgerc = errors.New("required option is missing from edgerc") + var ErrRequiredOptionEnv = errors.New("required option is missing from env") + var ErrSectionDoesNotExist = errors.New("provided config section does not exist") + func Timestamp(t time.Time) string + type Config struct + AccessToken string + AccountKey string + ClientSecret string + ClientToken string + Debug bool + HeaderToSign []string + Host string + MaxBody int + RequestLimit int + func Must(config *Config, err error) *Config + func New(opts ...Option) (*Config, error) + func (c *Config) FromEnv(section string) error + func (c *Config) FromFile(file string, section string) error + func (c *Config) Validate() error + func (c Config) CheckRequestLimit(limit int) + func (c Config) SignRequest(r *http.Request) + type Option func(*Config) + func WithEnv(env bool) Option + func WithFile(file string) Option + func WithSection(section string) Option + type Signer interface + CheckRequestLimit func(requestLimit int) + SignRequest func(r *http.Request) Other modules containing this package github.com/akamai/AkamaiOPEN-edgegrid-golang/v2 github.com/akamai/AkamaiOPEN-edgegrid-golang/v3 github.com/akamai/AkamaiOPEN-edgegrid-golang/v4 github.com/akamai/AkamaiOPEN-edgegrid-golang/v5 github.com/akamai/AkamaiOPEN-edgegrid-golang/v6 github.com/akamai/AkamaiOPEN-edgegrid-golang/v7 github.com/akamai/AkamaiOPEN-edgegrid-golang/v8