Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CosPayload ¶
type CosPayload struct {
Notification json.RawMessage `json:"notification"`
}
type Proxy ¶
type Proxy struct {
// contains filtered or unexported fields
}
func NewProxy ¶
func NewProxy(retryCache RetryCache) (*Proxy, error)
type ProxyConfig ¶
type ProxyConfig struct { RetryTimeToLive int `required:"true" envconfig:"cos_proxy_env_retry_time_to_live"` ProxyName string `required:"true" envconfig:"cos_proxy_env_pod_name"` ProxyNamespace string `required:"true" envconfig:"cos_proxy_env_pod_namespace"` ProxyStatefulSet string `required:"true" envconfig:"cos_proxy_env_pod_statefulset"` }
func GetConfig ¶
func GetConfig() (ProxyConfig, error)
type RetryCache ¶
type RetryCache interface {
Add(value ...interface{}) error
}
Click to show internal directories.
Click to hide internal directories.