Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CDNLoader ¶
type CDNLoader struct {
// contains filtered or unexported fields
}
func NewCDNLoader ¶
func NewCDNLoader(opts ...CDNLoaderOptionBuilder) *CDNLoader
func (*CDNLoader) LoadEnvironment ¶
type CDNLoaderOptionBuilder ¶
type CDNLoaderOptionBuilder func(*CDNLoader)
func WithBaseURL ¶
func WithBaseURL(url string) CDNLoaderOptionBuilder
func WithHTTPClient ¶
func WithHTTPClient(client *http.Client) CDNLoaderOptionBuilder
func WithLogger ¶ added in v0.3.1
func WithLogger(lvl string, fmt logger.LogFormat) CDNLoaderOptionBuilder
func WithPollingInterval ¶
func WithPollingInterval(pollingInterval time.Duration) CDNLoaderOptionBuilder
type MockLoader ¶
type MockLoader struct { MockedEnvironment *models.Environment ErrorReturned error }
func (*MockLoader) LoadEnvironment ¶
func (l *MockLoader) LoadEnvironment(envID string, APIKey string) (*models.Environment, error)
Click to show internal directories.
Click to hide internal directories.