http

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2021 License: MIT Imports: 14 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