model

package
v2.2.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2019 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 (
	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"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*ValueSkeleton) Descriptor

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

func (*ValueSkeleton) GetName

func (m *ValueSkeleton) GetName() string

func (*ValueSkeleton) ProtoMessage

func (*ValueSkeleton) ProtoMessage()

func (*ValueSkeleton) Reset

func (m *ValueSkeleton) Reset()

func (*ValueSkeleton) String

func (m *ValueSkeleton) String() string

func (*ValueSkeleton) XXX_DiscardUnknown

func (m *ValueSkeleton) XXX_DiscardUnknown()

func (*ValueSkeleton) XXX_Marshal

func (m *ValueSkeleton) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ValueSkeleton) XXX_Merge

func (dst *ValueSkeleton) XXX_Merge(src proto.Message)

func (*ValueSkeleton) XXX_MessageName

func (*ValueSkeleton) XXX_MessageName() string

func (*ValueSkeleton) XXX_Size

func (m *ValueSkeleton) XXX_Size() int

func (*ValueSkeleton) XXX_Unmarshal

func (m *ValueSkeleton) XXX_Unmarshal(b []byte) error

Jump to

Keyboard shortcuts

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