types

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2023 License: Apache-2.0 Imports: 6 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Create

func Create(ctx context.Context, payload any) (meta *documents.BaseDocument, err error)

func Read

func Read(ctx context.Context, key string) (meta *documents.BaseDocument, payload json.RawMessage, err error)

func Remove

func Remove(ctx context.Context, key string) (meta *documents.BaseDocument, err error)

func Update

func Update(ctx context.Context, key string, payload any) (meta *documents.BaseDocument, err error)

Types

type Type

type Type struct {
	Schema   *schema.Schema                        `json:"schema"`
	Triggers map[string]map[string]*pbcmdb.Trigger `json:"triggers"`
}

Type is a object type struct

func NewType

func NewType(schema *schema.Schema) Type

NewType return new object type

func ReflectType

func ReflectType(v interface{}) *Type

ReflectType get reflected profiletype

Jump to

Keyboard shortcuts

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