http

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2021 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DataSourceHttp  = "http"
	DataSourceHttps = "https"
)

Defines http/https scheme

Variables

This section is empty.

Functions

func GetFileName

func GetFileName(cacheKey string, cacheDir string) string

GetFileName ...

func NewDataSource

func NewDataSource(addr string, enableWatch bool) *yaseeDataSource

NewDataSource ...

func ReadConfigFromFile

func ReadConfigFromFile(cacheKey string, cacheDir string) (string, error)

ReadConfigFromFile ...

func WriteConfigToFile

func WriteConfigToFile(cacheKey string, cacheDir string, content string)

WriteConfigToFile ...

Types

type ConfigData

type ConfigData struct {
	Content      string `json:"content"`
	LastRevision int64  `json:"last_revision"`
}

ConfigData ...

Jump to

Keyboard shortcuts

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