pb

package
v1.3.2 Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2021 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_utils_pb_proto_proto protoreflect.FileDescriptor

Functions

func MarshalAny

func MarshalAny(m proto.Message) (*any.Any, error)

func UnmarshalAny

func UnmarshalAny(a *any.Any, m proto.Message) error

Types

type Cancel

type Cancel struct {
	Name   string `protobuf:"bytes,1,opt,name=Name,proto3" json:"Name,omitempty"`     // 服务名称
	NodeId string `protobuf:"bytes,2,opt,name=NodeId,proto3" json:"NodeId,omitempty"` // 服务节点ID
	// contains filtered or unexported fields
}

停止服务

func (*Cancel) Descriptor deprecated

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

Deprecated: Use Cancel.ProtoReflect.Descriptor instead.

func (*Cancel) GetName

func (x *Cancel) GetName() string

func (*Cancel) GetNodeId

func (x *Cancel) GetNodeId() string

func (*Cancel) ProtoMessage

func (*Cancel) ProtoMessage()

func (*Cancel) ProtoReflect

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

func (*Cancel) Reset

func (x *Cancel) Reset()

func (*Cancel) String

func (x *Cancel) String() string

type None

type None struct {
	// contains filtered or unexported fields
}

无返回数据

func (*None) Descriptor deprecated

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

Deprecated: Use None.ProtoReflect.Descriptor instead.

func (*None) ProtoMessage

func (*None) ProtoMessage()

func (*None) ProtoReflect

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

func (*None) Reset

func (x *None) Reset()

func (*None) String

func (x *None) String() string

type ProtoListValue

type ProtoListValue struct {
	*_struct.ListValue
}

func NewProtoListValue

func NewProtoListValue(v *_struct.ListValue) *ProtoListValue

func (*ProtoListValue) Index

func (p *ProtoListValue) Index(i int) *ProtoValue

func (*ProtoListValue) Interface

func (p *ProtoListValue) Interface() interface{}

func (*ProtoListValue) Proto

func (p *ProtoListValue) Proto() *_struct.ListValue

func (*ProtoListValue) Values

func (p *ProtoListValue) Values() []*ProtoValue

type ProtoStruct

type ProtoStruct struct {
	*_struct.Struct
}

func NewProtoStruct

func NewProtoStruct(s *_struct.Struct) *ProtoStruct

func (*ProtoStruct) Interface

func (p *ProtoStruct) Interface() interface{}

func (*ProtoStruct) Proto

func (p *ProtoStruct) Proto() *_struct.Struct

func (*ProtoStruct) Value

func (p *ProtoStruct) Value(field string) *ProtoValue

type ProtoValue

type ProtoValue struct {
	*_struct.Value
}

func NewProtoValue

func NewProtoValue(v *_struct.Value) *ProtoValue

func (*ProtoValue) Bool

func (s *ProtoValue) Bool() bool

func (*ProtoValue) Float32

func (s *ProtoValue) Float32() float32

func (*ProtoValue) Float64

func (s *ProtoValue) Float64() float64

func (*ProtoValue) Int

func (s *ProtoValue) Int() int

func (*ProtoValue) Int32

func (s *ProtoValue) Int32() int32

func (*ProtoValue) Int64

func (s *ProtoValue) Int64() int64

func (*ProtoValue) Interface

func (s *ProtoValue) Interface() interface{}

func (*ProtoValue) List

func (s *ProtoValue) List() *ProtoListValue

func (*ProtoValue) Null

func (s *ProtoValue) Null() _struct.NullValue

func (*ProtoValue) Number

func (s *ProtoValue) Number() float64

func (*ProtoValue) Proto

func (s *ProtoValue) Proto() *_struct.Value

func (*ProtoValue) String

func (s *ProtoValue) String() string

func (*ProtoValue) Struct

func (s *ProtoValue) Struct() *ProtoStruct

Jump to

Keyboard shortcuts

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