namespace

package
v0.9.6 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	DefaultVersion      Service = "v1.0.0"
	DefaultSchema               = "goroc"
	DefaultConfigSchema         = "configroc"
)
View Source
const (
	DefaultHeaderTrace   Header = "X-Idempotency-Key"
	DefaultHeaderVersion        = "X-Api-Version"
	DefaultHeaderToken          = "X-Api-Token"
	DefaultHeaderAddress        = "X-Api-Address"
)
View Source
const (
	WatcherCreate WatcherAction = "create"
	WatcherUpdate               = "update"
	WatcherDelete               = "delete"
)

Variables

This section is empty.

Functions

func SplicingConfigPrefix

func SplicingConfigPrefix(schema Schema, prefix string) string

SplicingConfigPrefix is splicing config prefix Schema default is DefaultConfigSchema

func SplicingPrefix

func SplicingPrefix(schema Schema, scope Scope) string

SplicingPrefix is splicing service address Schema default is DefaultSchema. eg. goroc

Types

type Header = string

type RequestChannel

type RequestChannel = string

type Schema

type Schema = string

type Scope

type Scope = string

func SplicingScope

func SplicingScope(name, version string) Scope

SplicingScope is the service name/version. eg.srv.hello/version name or version don't allowed none

type Service

type Service = string

type WatcherAction

type WatcherAction string

Jump to

Keyboard shortcuts

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