types

package
v0.0.0-...-a1b4a84 Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2023 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DEFAULT_FUNCTION_NAMESPACE  = "cqless-fn-ns"
	DEFAULT_FUNCTION_NAME_LABEL = "cqless-fn-nm"
	DEFAULT_FUNCTION_PORT_LABEL = "cqless-fn-port"

	DEFAULT_ANNOTATION_LABEL_PREFIX = "com.cqless.annotations"
	DEFAULT_SAVE_PATH               = ".local/share/cqless"

	DEFAULT_WATCHDOG_PORT = "8080"
)
View Source
const (
	CQLESS_VERSION = "v1beta-0.0.1"
)

Variables

View Source
var (
	DEFAULT_CONFIG_PATH = path.Join(home, DEFAULT_SAVE_PATH)

	DEBUG string
)
View Source
var (
	ErrNamespaceNotFound = errors.New("namespace not found")
)

Functions

func BuildEnv

func BuildEnv(function *pb.Function) []string

func BuildNode

func BuildNode(function *pb.Function) *types.Node

Types

type CQLessConfig

type CQLessConfig struct {
	Network  *ntypes.NetworkOption   `yaml:"network" mapstructure:"network"`
	Logger   *ltypes.LoggerOption    `yaml:"logger" mapstructure:"logger"`
	Gateway  *gtypes.GatewayOption   `yaml:"gateway" mapstructure:"gateway"`
	Proxy    *proxyTypes.ProxyOption `yaml:"proxy" mapstructure:"proxy"`
	Resolver *rtypes.ResolverOption  `yaml:"resolver" mapstructure:"resolver"`
	Provider *ptypes.ProviderOption  `yaml:"provider" mapstructure:"provider"`
	CQHTTP   *ctypes.CQHTTPOption    `yaml:"cqhttp" mapstructure:"cqhttp"`
}

func GetConfig

func GetConfig() *CQLessConfig

type FunctionInvokeRequest

type FunctionInvokeRequest struct {
	FunctionName string `form:"name" json:"name"`
}

Jump to

Keyboard shortcuts

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