model

package
v3.5.0 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const ModuleName = "skeleton"

ModuleName is the module name used for all the models of this plugin.

Variables

View Source
var File_model_model_proto protoreflect.FileDescriptor
View Source
var (
	ValueModel = models.Register(&ValueSkeleton{}, models.Spec{
		Module:  ModuleName,
		Version: "v1",
		Type:    "skeleton-value",
	})
)

Functions

func ValueSkeletonKey

func ValueSkeletonKey(name string) string

ValueSkeletonKey returns the key used in NB DB to store the configuration of a skeleton value with the given logical name.

Types

type ValueSkeleton

type ValueSkeleton struct {

	//
	//logical name is often defined to build unique keys for value instances
	//- alternativelly, in the value model (keys.go), you may apply the
	//WithNameTemplate() option to generate value instance name using a golang
	//template, combining multiple value attributes that collectively
	//guarantee unique value identification (i.e. primary key)
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

func (*ValueSkeleton) Descriptor deprecated

func (*ValueSkeleton) Descriptor() ([]byte, []int)

Deprecated: Use ValueSkeleton.ProtoReflect.Descriptor instead.

func (*ValueSkeleton) GetName

func (x *ValueSkeleton) GetName() string

func (*ValueSkeleton) ProtoMessage

func (*ValueSkeleton) ProtoMessage()

func (*ValueSkeleton) ProtoReflect added in v3.3.0

func (x *ValueSkeleton) ProtoReflect() protoreflect.Message

func (*ValueSkeleton) Reset

func (x *ValueSkeleton) Reset()

func (*ValueSkeleton) String

func (x *ValueSkeleton) String() string

Jump to

Keyboard shortcuts

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