remote

package
v0.6.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 13, 2021 License: MIT Imports: 8 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EdgeDictionary

type EdgeDictionary struct {
	Id    string `json:"id"`
	Name  string `json:"name"`
	Items []*EdgeDictionaryItem
}

type EdgeDictionaryItem

type EdgeDictionaryItem struct {
	Key   string `json:"item_key"`
	Value string `json:"item_value"`
}

type FastlyClient

type FastlyClient struct {
	// contains filtered or unexported fields
}

func NewFastlyClient

func NewFastlyClient(c *http.Client, serviceId, apiKey string) *FastlyClient

func (*FastlyClient) LatestVersion

func (c *FastlyClient) LatestVersion(ctx context.Context) (int64, error)

func (*FastlyClient) ListEdgeDictionaries

func (c *FastlyClient) ListEdgeDictionaries(ctx context.Context, version int64) ([]*EdgeDictionary, error)

func (*FastlyClient) ListEdgeDictionaryItems

func (c *FastlyClient) ListEdgeDictionaryItems(ctx context.Context, dictId string) ([]*EdgeDictionaryItem, error)

type Version

type Version struct {
	Number int64 `json:"number"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL