utils

package
v0.0.0-...-9625d7e Latest Latest
Warning

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

Go to latest
Published: May 21, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// ASSISTANT_VERSION ...
	ASSISTANT_VERSION = "0.0.1"

	API_ASSISTANT_VERSION = "V1.0"
	PULL_TASK_URI         = "/task/pull"
	REPLY_TASK_URI        = "/task/reply"
	POST_HEARTBEAT_URI    = "/heartbeat"

	// SERVICE for IAM signer
	SERVICE = "CES"

	PULL_TASK_INTERVAL_IN_SECOND      = 10
	REPLY_TASK_INTERVAL_IN_SECOND     = 5
	SEND_HEARTBEAT_INTERVAL_IN_SECOND = 60
)

Variables

This section is empty.

Functions

func BuildURL

func BuildURL(destURI string) string

BuildURL build URL string by URI

func GetMarshalledRequestBody

func GetMarshalledRequestBody(v interface{}, url string) ([]byte, error)

GetMarshalledRequestBody ...

Types

This section is empty.

Jump to

Keyboard shortcuts

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