Documentation
¶
Index ¶
Constants ¶
View Source
const VERCEL_API_URL string = "https://api.vercel.com"
View Source
const VERCEL_EDGE_CONFIG_URL string = "https://edge-config.vercel.com"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClientOptions ¶
type EdgeConfig ¶
type EdgeConfigItems ¶
type Timestamp ¶
func (*Timestamp) UnmarshalJSON ¶
type VercelAPI ¶
type VercelAPI struct { TeamID string // contains filtered or unexported fields }
func (*VercelAPI) Authenticate ¶
func (*VercelAPI) ListAllEdgeConfigs ¶
func (v *VercelAPI) ListAllEdgeConfigs() (edgeConfigs []*EdgeConfig, err error)
type VercelAPIError ¶
type VercelAPIError struct {
Error VercelAPIErrorDetail `json:"error"`
}
type VercelAPIErrorDetail ¶
type VercelEdgeConfigClient ¶
type VercelEdgeConfigClient struct { TeamID string API *VercelAPI EdgeConfigID string // contains filtered or unexported fields }
func New ¶
func New(options *ClientOptions) (client *VercelEdgeConfigClient, err error)
New creates a new Vercel Edge Config client using options.
func NewFromConnectionString ¶
func NewFromConnectionString(connectionString string) (client *VercelEdgeConfigClient, err error)
NewFromConnectionString creates a new Vercel Edge Config client from a connection string.
func (*VercelEdgeConfigClient) AllItems ¶
func (ec *VercelEdgeConfigClient) AllItems(args ...string) (items EdgeConfigItems, err error)
AllItems retrieves all items from an edge config store and returns a map.
Click to show internal directories.
Click to hide internal directories.