region

package
v0.11.2 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Data

type Data struct {
	Name             string `json:"name"`
	IsDefault        bool   `json:"isDefault"`
	RestApiAddress   string `json:"restApiAddress"`
	GrpcApiAddress   string `json:"grpcApiAddress"`
	VpnApiAddress    string `json:"vpnApiAddress"`
	CaCertificateUrl string `json:"caCertificateUrl"`
}

type Handler

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

func New

func New(client *httpClient.Handler, storage *storage.Handler[Data]) *Handler

func (*Handler) RetrieveAllFromURL

func (h *Handler) RetrieveAllFromURL(regionURL string) ([]Data, error)

func (*Handler) RetrieveFromFile

func (h *Handler) RetrieveFromFile() (Data, error)

func (*Handler) RetrieveFromURL

func (h *Handler) RetrieveFromURL(regionURL, region string) (Data, error)

Jump to

Keyboard shortcuts

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