Versions in this module Expand all Collapse all v1 v1.0.1 Nov 21, 2025 v1.0.0 Nov 18, 2025 Changes in this version + type ByteShieldClient struct + func (c *ByteShieldClient) ScdnClient() (*ScdnClient, error) + type Config struct + AccessKey string + Endpoint string + Region string + SecretKey string + func (c *Config) Client() (*ByteShieldClient, error) + type ScdnClient struct + func NewScdnClient(baseURL, apiKey, apiSecret string, timeout time.Duration) *ScdnClient + func NewScdnClientFromConfig(client *ByteShieldClient) *ScdnClient + func (c *ScdnClient) Delete(ctx context.Context, api string, req *ScdnRequest) (*ScdnResponse, error) + func (c *ScdnClient) Get(ctx context.Context, api string, req *ScdnRequest) (*ScdnResponse, error) + func (c *ScdnClient) GetAPIVersion() string + func (c *ScdnClient) GetBaseURL() string + func (c *ScdnClient) GetCredentials() (string, string) + func (c *ScdnClient) GetServiceName() string + func (c *ScdnClient) GetTimeout() time.Duration + func (c *ScdnClient) IsHealthy(ctx context.Context) error + func (c *ScdnClient) Post(ctx context.Context, api string, req *ScdnRequest) (*ScdnResponse, error) + func (c *ScdnClient) Put(ctx context.Context, api string, req *ScdnRequest) (*ScdnResponse, error) + func (c *ScdnClient) SetBaseURL(baseURL string) + func (c *ScdnClient) SetCredentials(apiKey, apiSecret string) + func (c *ScdnClient) SetTimeout(timeout time.Duration) + type ScdnRequest struct + Data map[string]interface{} + Header map[string]string + Query map[string]interface{} + type ScdnResponse struct + Data interface{} + Status ScdnStatus + type ScdnStatus struct + Code int + Message string