model

package
v0.0.0-...-fa62366 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvertToCancelEvent

func ConvertToCancelEvent(event *pb.Event) *pb.Event

func GenAppidKey

func GenAppidKey(namespace string, appid string) string

func GenAppidPrefix

func GenAppidPrefix(namespace string) string

func GenNamespaceKey

func GenNamespaceKey(namespace string) string

func GenNamespacePrefix

func GenNamespacePrefix() string

func GenStoreKV

func GenStoreKV(namespace string, service string, k string) string

func GenStoreKVPrefix

func GenStoreKVPrefix(namespace string, service string) string

func MustMarshal

func MustMarshal(event *pb.Event) []byte

85 41

func MustUnmarshal

func MustUnmarshal(data []byte, event *pb.Event)

Types

type HandlerReq

type HandlerReq struct {
	Namespace string
	Events    []*pb.Event
}

func GeneratorKvReq

func GeneratorKvReq(namespace string, service string, k string, v string) *HandlerReq

func GeneratorNamespaceReq

func GeneratorNamespaceReq(namespace string) *HandlerReq

func GeneratorServiceReq

func GeneratorServiceReq(namespace string, service string) *HandlerReq

Jump to

Keyboard shortcuts

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