common

package
v0.0.0-...-526c290 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	WorkerInterval     = 3 //(seconds)
	CmdBucketKeyPrefix = "command"
	OutBucketKeyPrefix = "output"
)

Variables

This section is empty.

Functions

func ListWorkersKVs

func ListWorkersKVs(namespace string) (cloudflare.ListStorageKeysResponse, error)

func ReadCmdKV

func ReadCmdKV(request CmdKVRRequest) ([]byte, error)

func ReadOutKV

func ReadOutKV(request OutKVRRequest) ([]byte, error)

func WriteCmdKV

func WriteCmdKV(request CmdKVWRequest) (cloudflare.Response, error)

func WriteOutKV

func WriteOutKV(request OutKVWRequest) (cloudflare.Response, error)

Types

type CmdKVRRequest

type CmdKVRRequest struct {
	NameSpace NameSpace
	CmdKName  string
}

Command key read

type CmdKVWRequest

type CmdKVWRequest struct {
	NameSpace  NameSpace
	CmdKName   string
	CmdPayload []byte
}

Command key write

type NameSpace

type NameSpace struct {
	Name string
	UUID string
}

type OutKVRRequest

type OutKVRRequest struct {
	NameSpace NameSpace
	OutKName  string
}

Output key read

type OutKVWRequest

type OutKVWRequest struct {
	NameSpace  NameSpace
	OutKName   string
	OutPayload []byte
}

Output key write

Jump to

Keyboard shortcuts

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