Documentation ¶
Index ¶
- Variables
- func MarshalAny(m proto.Message) (*any.Any, error)
- func UnmarshalAny(a *any.Any, m proto.Message) error
- type Cancel
- type None
- type ProtoListValue
- type ProtoStruct
- type ProtoValue
- func (s *ProtoValue) Bool() bool
- func (s *ProtoValue) Float32() float32
- func (s *ProtoValue) Float64() float64
- func (s *ProtoValue) Int() int
- func (s *ProtoValue) Int32() int32
- func (s *ProtoValue) Int64() int64
- func (s *ProtoValue) Interface() interface{}
- func (s *ProtoValue) List() *ProtoListValue
- func (s *ProtoValue) Null() _struct.NullValue
- func (s *ProtoValue) Number() float64
- func (s *ProtoValue) Proto() *_struct.Value
- func (s *ProtoValue) String() string
- func (s *ProtoValue) Struct() *ProtoStruct
Constants ¶
This section is empty.
Variables ¶
View Source
var File_utils_pb_proto_proto protoreflect.FileDescriptor
Functions ¶
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) ProtoMessage ¶
func (*Cancel) ProtoMessage()
func (*Cancel) ProtoReflect ¶
func (x *Cancel) ProtoReflect() protoreflect.Message
type None ¶
type None struct {
// contains filtered or unexported fields
}
无返回数据
func (*None) Descriptor
deprecated
func (*None) ProtoMessage ¶
func (*None) ProtoMessage()
func (*None) ProtoReflect ¶
func (x *None) ProtoReflect() protoreflect.Message
type ProtoListValue ¶
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 ¶
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 ¶
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
Click to show internal directories.
Click to hide internal directories.