edge_cmd_pb

package
v0.21.251 Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	CommandType_name = map[int32]string{
		0:    "Zero",
		1000: "CreateEdgeTerminatorType",
	}
	CommandType_value = map[string]int32{
		"Zero":                     0,
		"CreateEdgeTerminatorType": 1000,
	}
)

Enum value maps for CommandType.

View Source
var File_edge_cmd_proto protoreflect.FileDescriptor

Functions

func DecodeJson

func DecodeJson(m *JsonMap) map[string]interface{}

func DecodeTags

func DecodeTags(tags map[string]*TagValue) map[string]interface{}

func EncodeTags

func EncodeTags(tags map[string]interface{}) (map[string]*TagValue, error)

Types

type CommandType

type CommandType int32
const (
	CommandType_Zero                     CommandType = 0
	CommandType_CreateEdgeTerminatorType CommandType = 1000
)

func (CommandType) Descriptor

func (CommandType) Enum

func (x CommandType) Enum() *CommandType

func (CommandType) EnumDescriptor deprecated

func (CommandType) EnumDescriptor() ([]byte, []int)

Deprecated: Use CommandType.Descriptor instead.

func (CommandType) Number

func (x CommandType) Number() protoreflect.EnumNumber

func (CommandType) String

func (x CommandType) String() string

func (CommandType) Type

type Config

type Config struct {
	Id           string               `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Name         string               `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	ConfigTypeId string               `protobuf:"bytes,3,opt,name=configTypeId,proto3" json:"configTypeId,omitempty"`
	Data         *JsonMap             `protobuf:"bytes,4,opt,name=data,proto3" json:"data,omitempty"`
	Tags         map[string]*TagValue `` /* 149-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*Config) Descriptor deprecated

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

Deprecated: Use Config.ProtoReflect.Descriptor instead.

func (*Config) GetConfigTypeId

func (x *Config) GetConfigTypeId() string

func (*Config) GetData

func (x *Config) GetData() *JsonMap

func (*Config) GetId

func (x *Config) GetId() string

func (*Config) GetName

func (x *Config) GetName() string

func (*Config) GetTags

func (x *Config) GetTags() map[string]*TagValue

func (*Config) ProtoMessage

func (*Config) ProtoMessage()

func (*Config) ProtoReflect

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

func (*Config) Reset

func (x *Config) Reset()

func (*Config) String

func (x *Config) String() string

type CreateEdgeTerminatorCommand

type CreateEdgeTerminatorCommand struct {
	TerminatorData []byte `protobuf:"bytes,1,opt,name=terminatorData,proto3" json:"terminatorData,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateEdgeTerminatorCommand) Descriptor deprecated

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

Deprecated: Use CreateEdgeTerminatorCommand.ProtoReflect.Descriptor instead.

func (*CreateEdgeTerminatorCommand) GetCommandType

func (x *CreateEdgeTerminatorCommand) GetCommandType() int32

func (*CreateEdgeTerminatorCommand) GetTerminatorData

func (x *CreateEdgeTerminatorCommand) GetTerminatorData() []byte

func (*CreateEdgeTerminatorCommand) ProtoMessage

func (*CreateEdgeTerminatorCommand) ProtoMessage()

func (*CreateEdgeTerminatorCommand) ProtoReflect

func (*CreateEdgeTerminatorCommand) Reset

func (x *CreateEdgeTerminatorCommand) Reset()

func (*CreateEdgeTerminatorCommand) String

func (x *CreateEdgeTerminatorCommand) String() string

type JsonMap

type JsonMap struct {
	Value map[string]*JsonValue `` /* 151-byte string literal not displayed */
	// contains filtered or unexported fields
}

func EncodeJson

func EncodeJson(tags map[string]interface{}) (*JsonMap, error)

func (*JsonMap) Descriptor deprecated

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

Deprecated: Use JsonMap.ProtoReflect.Descriptor instead.

func (*JsonMap) GetValue

func (x *JsonMap) GetValue() map[string]*JsonValue

func (*JsonMap) ProtoMessage

func (*JsonMap) ProtoMessage()

func (*JsonMap) ProtoReflect

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

func (*JsonMap) Reset

func (x *JsonMap) Reset()

func (*JsonMap) String

func (x *JsonMap) String() string

type JsonValue

type JsonValue struct {

	// Types that are assignable to Value:
	//	*JsonValue_BoolValue
	//	*JsonValue_StringValue
	//	*JsonValue_FpValue
	//	*JsonValue_NilValue
	//	*JsonValue_MapValue
	Value isJsonValue_Value `protobuf_oneof:"value"`
	// contains filtered or unexported fields
}

func (*JsonValue) Descriptor deprecated

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

Deprecated: Use JsonValue.ProtoReflect.Descriptor instead.

func (*JsonValue) GetBoolValue

func (x *JsonValue) GetBoolValue() bool

func (*JsonValue) GetFpValue

func (x *JsonValue) GetFpValue() float64

func (*JsonValue) GetMapValue

func (x *JsonValue) GetMapValue() *JsonMap

func (*JsonValue) GetNilValue

func (x *JsonValue) GetNilValue() bool

func (*JsonValue) GetStringValue

func (x *JsonValue) GetStringValue() string

func (*JsonValue) GetValue

func (m *JsonValue) GetValue() isJsonValue_Value

func (*JsonValue) ProtoMessage

func (*JsonValue) ProtoMessage()

func (*JsonValue) ProtoReflect

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

func (*JsonValue) Reset

func (x *JsonValue) Reset()

func (*JsonValue) String

func (x *JsonValue) String() string

type JsonValue_BoolValue

type JsonValue_BoolValue struct {
	BoolValue bool `protobuf:"varint,1,opt,name=boolValue,proto3,oneof"`
}

type JsonValue_FpValue

type JsonValue_FpValue struct {
	FpValue float64 `protobuf:"fixed64,3,opt,name=fpValue,proto3,oneof"`
}

type JsonValue_MapValue

type JsonValue_MapValue struct {
	MapValue *JsonMap `protobuf:"bytes,5,opt,name=mapValue,proto3,oneof"`
}

type JsonValue_NilValue

type JsonValue_NilValue struct {
	NilValue bool `protobuf:"varint,4,opt,name=nilValue,proto3,oneof"`
}

type JsonValue_StringValue

type JsonValue_StringValue struct {
	StringValue string `protobuf:"bytes,2,opt,name=stringValue,proto3,oneof"`
}

type TagValue

type TagValue struct {

	// Types that are assignable to Value:
	//	*TagValue_BoolValue
	//	*TagValue_StringValue
	//	*TagValue_FpValue
	//	*TagValue_NilValue
	Value isTagValue_Value `protobuf_oneof:"value"`
	// contains filtered or unexported fields
}

func (*TagValue) Descriptor deprecated

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

Deprecated: Use TagValue.ProtoReflect.Descriptor instead.

func (*TagValue) GetBoolValue

func (x *TagValue) GetBoolValue() bool

func (*TagValue) GetFpValue

func (x *TagValue) GetFpValue() float64

func (*TagValue) GetNilValue

func (x *TagValue) GetNilValue() bool

func (*TagValue) GetStringValue

func (x *TagValue) GetStringValue() string

func (*TagValue) GetValue

func (m *TagValue) GetValue() isTagValue_Value

func (*TagValue) ProtoMessage

func (*TagValue) ProtoMessage()

func (*TagValue) ProtoReflect

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

func (*TagValue) Reset

func (x *TagValue) Reset()

func (*TagValue) String

func (x *TagValue) String() string

type TagValue_BoolValue

type TagValue_BoolValue struct {
	BoolValue bool `protobuf:"varint,1,opt,name=boolValue,proto3,oneof"`
}

type TagValue_FpValue

type TagValue_FpValue struct {
	FpValue float64 `protobuf:"fixed64,3,opt,name=fpValue,proto3,oneof"`
}

type TagValue_NilValue

type TagValue_NilValue struct {
	NilValue bool `protobuf:"varint,4,opt,name=nilValue,proto3,oneof"`
}

type TagValue_StringValue

type TagValue_StringValue struct {
	StringValue string `protobuf:"bytes,2,opt,name=stringValue,proto3,oneof"`
}

Jump to

Keyboard shortcuts

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