Documentation ¶
Index ¶
- Constants
- Variables
- func RegisterNetmapServiceServer(s grpc.ServiceRegistrar, srv NetmapServiceServer)
- type Clause
- type Filter
- func (x *Filter) EmitProtobuf(mm *easyproto.MessageMarshaler)
- func (x *Filter) GetFilters() []Filter
- func (x *Filter) GetKey() string
- func (x *Filter) GetName() string
- func (x *Filter) GetOp() Operation
- func (x *Filter) GetValue() string
- func (x *Filter) MarshalEasyJSON(out *jwriter.Writer)
- func (x *Filter) MarshalJSON() ([]byte, error)
- func (x *Filter) MarshalProtobuf(dst []byte) []byte
- func (x *Filter) SetFilters(v []Filter)
- func (x *Filter) SetKey(v string)
- func (x *Filter) SetName(v string)
- func (x *Filter) SetOp(v Operation)
- func (x *Filter) SetValue(v string)
- func (x *Filter) StableSize() (size int)
- func (x *Filter) UnmarshalEasyJSON(in *jlexer.Lexer)
- func (x *Filter) UnmarshalJSON(data []byte) error
- func (x *Filter) UnmarshalProtobuf(src []byte) (err error)
- type LocalNodeInfoRequest
- func (x *LocalNodeInfoRequest) EmitProtobuf(mm *easyproto.MessageMarshaler)
- func (x *LocalNodeInfoRequest) GetBody() *LocalNodeInfoRequest_Body
- func (x *LocalNodeInfoRequest) GetMetaHeader() *grpc.RequestMetaHeader
- func (x *LocalNodeInfoRequest) GetVerifyHeader() *grpc.RequestVerificationHeader
- func (x *LocalNodeInfoRequest) MarshalEasyJSON(out *jwriter.Writer)
- func (x *LocalNodeInfoRequest) MarshalJSON() ([]byte, error)
- func (x *LocalNodeInfoRequest) MarshalProtobuf(dst []byte) []byte
- func (x *LocalNodeInfoRequest) ReadSignedData(buf []byte) ([]byte, error)
- func (x *LocalNodeInfoRequest) SetBody(v *LocalNodeInfoRequest_Body)
- func (x *LocalNodeInfoRequest) SetMetaHeader(v *grpc.RequestMetaHeader)
- func (x *LocalNodeInfoRequest) SetVerifyHeader(v *grpc.RequestVerificationHeader)
- func (x *LocalNodeInfoRequest) SignedDataSize() int
- func (x *LocalNodeInfoRequest) StableSize() (size int)
- func (x *LocalNodeInfoRequest) UnmarshalEasyJSON(in *jlexer.Lexer)
- func (x *LocalNodeInfoRequest) UnmarshalJSON(data []byte) error
- func (x *LocalNodeInfoRequest) UnmarshalProtobuf(src []byte) (err error)
- type LocalNodeInfoRequest_Body
- func (x *LocalNodeInfoRequest_Body) EmitProtobuf(mm *easyproto.MessageMarshaler)
- func (x *LocalNodeInfoRequest_Body) MarshalEasyJSON(out *jwriter.Writer)
- func (x *LocalNodeInfoRequest_Body) MarshalJSON() ([]byte, error)
- func (x *LocalNodeInfoRequest_Body) MarshalProtobuf(dst []byte) []byte
- func (x *LocalNodeInfoRequest_Body) StableSize() (size int)
- func (x *LocalNodeInfoRequest_Body) UnmarshalEasyJSON(in *jlexer.Lexer)
- func (x *LocalNodeInfoRequest_Body) UnmarshalJSON(data []byte) error
- func (x *LocalNodeInfoRequest_Body) UnmarshalProtobuf(src []byte) (err error)
- type LocalNodeInfoResponse
- func (x *LocalNodeInfoResponse) EmitProtobuf(mm *easyproto.MessageMarshaler)
- func (x *LocalNodeInfoResponse) GetBody() *LocalNodeInfoResponse_Body
- func (x *LocalNodeInfoResponse) GetMetaHeader() *grpc.ResponseMetaHeader
- func (x *LocalNodeInfoResponse) GetVerifyHeader() *grpc.ResponseVerificationHeader
- func (x *LocalNodeInfoResponse) MarshalEasyJSON(out *jwriter.Writer)
- func (x *LocalNodeInfoResponse) MarshalJSON() ([]byte, error)
- func (x *LocalNodeInfoResponse) MarshalProtobuf(dst []byte) []byte
- func (x *LocalNodeInfoResponse) ReadSignedData(buf []byte) ([]byte, error)
- func (x *LocalNodeInfoResponse) SetBody(v *LocalNodeInfoResponse_Body)
- func (x *LocalNodeInfoResponse) SetMetaHeader(v *grpc.ResponseMetaHeader)
- func (x *LocalNodeInfoResponse) SetVerifyHeader(v *grpc.ResponseVerificationHeader)
- func (x *LocalNodeInfoResponse) SignedDataSize() int
- func (x *LocalNodeInfoResponse) StableSize() (size int)
- func (x *LocalNodeInfoResponse) UnmarshalEasyJSON(in *jlexer.Lexer)
- func (x *LocalNodeInfoResponse) UnmarshalJSON(data []byte) error
- func (x *LocalNodeInfoResponse) UnmarshalProtobuf(src []byte) (err error)
- type LocalNodeInfoResponse_Body
- func (x *LocalNodeInfoResponse_Body) EmitProtobuf(mm *easyproto.MessageMarshaler)
- func (x *LocalNodeInfoResponse_Body) GetNodeInfo() *NodeInfo
- func (x *LocalNodeInfoResponse_Body) GetVersion() *grpc1.Version
- func (x *LocalNodeInfoResponse_Body) MarshalEasyJSON(out *jwriter.Writer)
- func (x *LocalNodeInfoResponse_Body) MarshalJSON() ([]byte, error)
- func (x *LocalNodeInfoResponse_Body) MarshalProtobuf(dst []byte) []byte
- func (x *LocalNodeInfoResponse_Body) SetNodeInfo(v *NodeInfo)
- func (x *LocalNodeInfoResponse_Body) SetVersion(v *grpc1.Version)
- func (x *LocalNodeInfoResponse_Body) StableSize() (size int)
- func (x *LocalNodeInfoResponse_Body) UnmarshalEasyJSON(in *jlexer.Lexer)
- func (x *LocalNodeInfoResponse_Body) UnmarshalJSON(data []byte) error
- func (x *LocalNodeInfoResponse_Body) UnmarshalProtobuf(src []byte) (err error)
- type Netmap
- func (x *Netmap) EmitProtobuf(mm *easyproto.MessageMarshaler)
- func (x *Netmap) GetEpoch() uint64
- func (x *Netmap) GetNodes() []NodeInfo
- func (x *Netmap) MarshalEasyJSON(out *jwriter.Writer)
- func (x *Netmap) MarshalJSON() ([]byte, error)
- func (x *Netmap) MarshalProtobuf(dst []byte) []byte
- func (x *Netmap) SetEpoch(v uint64)
- func (x *Netmap) SetNodes(v []NodeInfo)
- func (x *Netmap) StableSize() (size int)
- func (x *Netmap) UnmarshalEasyJSON(in *jlexer.Lexer)
- func (x *Netmap) UnmarshalJSON(data []byte) error
- func (x *Netmap) UnmarshalProtobuf(src []byte) (err error)
- type NetmapServiceClient
- type NetmapServiceServer
- type NetmapSnapshotRequest
- func (x *NetmapSnapshotRequest) EmitProtobuf(mm *easyproto.MessageMarshaler)
- func (x *NetmapSnapshotRequest) GetBody() *NetmapSnapshotRequest_Body
- func (x *NetmapSnapshotRequest) GetMetaHeader() *grpc.RequestMetaHeader
- func (x *NetmapSnapshotRequest) GetVerifyHeader() *grpc.RequestVerificationHeader
- func (x *NetmapSnapshotRequest) MarshalEasyJSON(out *jwriter.Writer)
- func (x *NetmapSnapshotRequest) MarshalJSON() ([]byte, error)
- func (x *NetmapSnapshotRequest) MarshalProtobuf(dst []byte) []byte
- func (x *NetmapSnapshotRequest) ReadSignedData(buf []byte) ([]byte, error)
- func (x *NetmapSnapshotRequest) SetBody(v *NetmapSnapshotRequest_Body)
- func (x *NetmapSnapshotRequest) SetMetaHeader(v *grpc.RequestMetaHeader)
- func (x *NetmapSnapshotRequest) SetVerifyHeader(v *grpc.RequestVerificationHeader)
- func (x *NetmapSnapshotRequest) SignedDataSize() int
- func (x *NetmapSnapshotRequest) StableSize() (size int)
- func (x *NetmapSnapshotRequest) UnmarshalEasyJSON(in *jlexer.Lexer)
- func (x *NetmapSnapshotRequest) UnmarshalJSON(data []byte) error
- func (x *NetmapSnapshotRequest) UnmarshalProtobuf(src []byte) (err error)
- type NetmapSnapshotRequest_Body
- func (x *NetmapSnapshotRequest_Body) EmitProtobuf(mm *easyproto.MessageMarshaler)
- func (x *NetmapSnapshotRequest_Body) MarshalEasyJSON(out *jwriter.Writer)
- func (x *NetmapSnapshotRequest_Body) MarshalJSON() ([]byte, error)
- func (x *NetmapSnapshotRequest_Body) MarshalProtobuf(dst []byte) []byte
- func (x *NetmapSnapshotRequest_Body) StableSize() (size int)
- func (x *NetmapSnapshotRequest_Body) UnmarshalEasyJSON(in *jlexer.Lexer)
- func (x *NetmapSnapshotRequest_Body) UnmarshalJSON(data []byte) error
- func (x *NetmapSnapshotRequest_Body) UnmarshalProtobuf(src []byte) (err error)
- type NetmapSnapshotResponse
- func (x *NetmapSnapshotResponse) EmitProtobuf(mm *easyproto.MessageMarshaler)
- func (x *NetmapSnapshotResponse) GetBody() *NetmapSnapshotResponse_Body
- func (x *NetmapSnapshotResponse) GetMetaHeader() *grpc.ResponseMetaHeader
- func (x *NetmapSnapshotResponse) GetVerifyHeader() *grpc.ResponseVerificationHeader
- func (x *NetmapSnapshotResponse) MarshalEasyJSON(out *jwriter.Writer)
- func (x *NetmapSnapshotResponse) MarshalJSON() ([]byte, error)
- func (x *NetmapSnapshotResponse) MarshalProtobuf(dst []byte) []byte
- func (x *NetmapSnapshotResponse) ReadSignedData(buf []byte) ([]byte, error)
- func (x *NetmapSnapshotResponse) SetBody(v *NetmapSnapshotResponse_Body)
- func (x *NetmapSnapshotResponse) SetMetaHeader(v *grpc.ResponseMetaHeader)
- func (x *NetmapSnapshotResponse) SetVerifyHeader(v *grpc.ResponseVerificationHeader)
- func (x *NetmapSnapshotResponse) SignedDataSize() int
- func (x *NetmapSnapshotResponse) StableSize() (size int)
- func (x *NetmapSnapshotResponse) UnmarshalEasyJSON(in *jlexer.Lexer)
- func (x *NetmapSnapshotResponse) UnmarshalJSON(data []byte) error
- func (x *NetmapSnapshotResponse) UnmarshalProtobuf(src []byte) (err error)
- type NetmapSnapshotResponse_Body
- func (x *NetmapSnapshotResponse_Body) EmitProtobuf(mm *easyproto.MessageMarshaler)
- func (x *NetmapSnapshotResponse_Body) GetNetmap() *Netmap
- func (x *NetmapSnapshotResponse_Body) MarshalEasyJSON(out *jwriter.Writer)
- func (x *NetmapSnapshotResponse_Body) MarshalJSON() ([]byte, error)
- func (x *NetmapSnapshotResponse_Body) MarshalProtobuf(dst []byte) []byte
- func (x *NetmapSnapshotResponse_Body) SetNetmap(v *Netmap)
- func (x *NetmapSnapshotResponse_Body) StableSize() (size int)
- func (x *NetmapSnapshotResponse_Body) UnmarshalEasyJSON(in *jlexer.Lexer)
- func (x *NetmapSnapshotResponse_Body) UnmarshalJSON(data []byte) error
- func (x *NetmapSnapshotResponse_Body) UnmarshalProtobuf(src []byte) (err error)
- type NetworkConfig
- func (x *NetworkConfig) EmitProtobuf(mm *easyproto.MessageMarshaler)
- func (x *NetworkConfig) GetParameters() []NetworkConfig_Parameter
- func (x *NetworkConfig) MarshalEasyJSON(out *jwriter.Writer)
- func (x *NetworkConfig) MarshalJSON() ([]byte, error)
- func (x *NetworkConfig) MarshalProtobuf(dst []byte) []byte
- func (x *NetworkConfig) SetParameters(v []NetworkConfig_Parameter)
- func (x *NetworkConfig) StableSize() (size int)
- func (x *NetworkConfig) UnmarshalEasyJSON(in *jlexer.Lexer)
- func (x *NetworkConfig) UnmarshalJSON(data []byte) error
- func (x *NetworkConfig) UnmarshalProtobuf(src []byte) (err error)
- type NetworkConfig_Parameter
- func (x *NetworkConfig_Parameter) EmitProtobuf(mm *easyproto.MessageMarshaler)
- func (x *NetworkConfig_Parameter) GetKey() []byte
- func (x *NetworkConfig_Parameter) GetValue() []byte
- func (x *NetworkConfig_Parameter) MarshalEasyJSON(out *jwriter.Writer)
- func (x *NetworkConfig_Parameter) MarshalJSON() ([]byte, error)
- func (x *NetworkConfig_Parameter) MarshalProtobuf(dst []byte) []byte
- func (x *NetworkConfig_Parameter) SetKey(v []byte)
- func (x *NetworkConfig_Parameter) SetValue(v []byte)
- func (x *NetworkConfig_Parameter) StableSize() (size int)
- func (x *NetworkConfig_Parameter) UnmarshalEasyJSON(in *jlexer.Lexer)
- func (x *NetworkConfig_Parameter) UnmarshalJSON(data []byte) error
- func (x *NetworkConfig_Parameter) UnmarshalProtobuf(src []byte) (err error)
- type NetworkInfo
- func (x *NetworkInfo) EmitProtobuf(mm *easyproto.MessageMarshaler)
- func (x *NetworkInfo) GetCurrentEpoch() uint64
- func (x *NetworkInfo) GetMagicNumber() uint64
- func (x *NetworkInfo) GetMsPerBlock() int64
- func (x *NetworkInfo) GetNetworkConfig() *NetworkConfig
- func (x *NetworkInfo) MarshalEasyJSON(out *jwriter.Writer)
- func (x *NetworkInfo) MarshalJSON() ([]byte, error)
- func (x *NetworkInfo) MarshalProtobuf(dst []byte) []byte
- func (x *NetworkInfo) SetCurrentEpoch(v uint64)
- func (x *NetworkInfo) SetMagicNumber(v uint64)
- func (x *NetworkInfo) SetMsPerBlock(v int64)
- func (x *NetworkInfo) SetNetworkConfig(v *NetworkConfig)
- func (x *NetworkInfo) StableSize() (size int)
- func (x *NetworkInfo) UnmarshalEasyJSON(in *jlexer.Lexer)
- func (x *NetworkInfo) UnmarshalJSON(data []byte) error
- func (x *NetworkInfo) UnmarshalProtobuf(src []byte) (err error)
- type NetworkInfoRequest
- func (x *NetworkInfoRequest) EmitProtobuf(mm *easyproto.MessageMarshaler)
- func (x *NetworkInfoRequest) GetBody() *NetworkInfoRequest_Body
- func (x *NetworkInfoRequest) GetMetaHeader() *grpc.RequestMetaHeader
- func (x *NetworkInfoRequest) GetVerifyHeader() *grpc.RequestVerificationHeader
- func (x *NetworkInfoRequest) MarshalEasyJSON(out *jwriter.Writer)
- func (x *NetworkInfoRequest) MarshalJSON() ([]byte, error)
- func (x *NetworkInfoRequest) MarshalProtobuf(dst []byte) []byte
- func (x *NetworkInfoRequest) ReadSignedData(buf []byte) ([]byte, error)
- func (x *NetworkInfoRequest) SetBody(v *NetworkInfoRequest_Body)
- func (x *NetworkInfoRequest) SetMetaHeader(v *grpc.RequestMetaHeader)
- func (x *NetworkInfoRequest) SetVerifyHeader(v *grpc.RequestVerificationHeader)
- func (x *NetworkInfoRequest) SignedDataSize() int
- func (x *NetworkInfoRequest) StableSize() (size int)
- func (x *NetworkInfoRequest) UnmarshalEasyJSON(in *jlexer.Lexer)
- func (x *NetworkInfoRequest) UnmarshalJSON(data []byte) error
- func (x *NetworkInfoRequest) UnmarshalProtobuf(src []byte) (err error)
- type NetworkInfoRequest_Body
- func (x *NetworkInfoRequest_Body) EmitProtobuf(mm *easyproto.MessageMarshaler)
- func (x *NetworkInfoRequest_Body) MarshalEasyJSON(out *jwriter.Writer)
- func (x *NetworkInfoRequest_Body) MarshalJSON() ([]byte, error)
- func (x *NetworkInfoRequest_Body) MarshalProtobuf(dst []byte) []byte
- func (x *NetworkInfoRequest_Body) StableSize() (size int)
- func (x *NetworkInfoRequest_Body) UnmarshalEasyJSON(in *jlexer.Lexer)
- func (x *NetworkInfoRequest_Body) UnmarshalJSON(data []byte) error
- func (x *NetworkInfoRequest_Body) UnmarshalProtobuf(src []byte) (err error)
- type NetworkInfoResponse
- func (x *NetworkInfoResponse) EmitProtobuf(mm *easyproto.MessageMarshaler)
- func (x *NetworkInfoResponse) GetBody() *NetworkInfoResponse_Body
- func (x *NetworkInfoResponse) GetMetaHeader() *grpc.ResponseMetaHeader
- func (x *NetworkInfoResponse) GetVerifyHeader() *grpc.ResponseVerificationHeader
- func (x *NetworkInfoResponse) MarshalEasyJSON(out *jwriter.Writer)
- func (x *NetworkInfoResponse) MarshalJSON() ([]byte, error)
- func (x *NetworkInfoResponse) MarshalProtobuf(dst []byte) []byte
- func (x *NetworkInfoResponse) ReadSignedData(buf []byte) ([]byte, error)
- func (x *NetworkInfoResponse) SetBody(v *NetworkInfoResponse_Body)
- func (x *NetworkInfoResponse) SetMetaHeader(v *grpc.ResponseMetaHeader)
- func (x *NetworkInfoResponse) SetVerifyHeader(v *grpc.ResponseVerificationHeader)
- func (x *NetworkInfoResponse) SignedDataSize() int
- func (x *NetworkInfoResponse) StableSize() (size int)
- func (x *NetworkInfoResponse) UnmarshalEasyJSON(in *jlexer.Lexer)
- func (x *NetworkInfoResponse) UnmarshalJSON(data []byte) error
- func (x *NetworkInfoResponse) UnmarshalProtobuf(src []byte) (err error)
- type NetworkInfoResponse_Body
- func (x *NetworkInfoResponse_Body) EmitProtobuf(mm *easyproto.MessageMarshaler)
- func (x *NetworkInfoResponse_Body) GetNetworkInfo() *NetworkInfo
- func (x *NetworkInfoResponse_Body) MarshalEasyJSON(out *jwriter.Writer)
- func (x *NetworkInfoResponse_Body) MarshalJSON() ([]byte, error)
- func (x *NetworkInfoResponse_Body) MarshalProtobuf(dst []byte) []byte
- func (x *NetworkInfoResponse_Body) SetNetworkInfo(v *NetworkInfo)
- func (x *NetworkInfoResponse_Body) StableSize() (size int)
- func (x *NetworkInfoResponse_Body) UnmarshalEasyJSON(in *jlexer.Lexer)
- func (x *NetworkInfoResponse_Body) UnmarshalJSON(data []byte) error
- func (x *NetworkInfoResponse_Body) UnmarshalProtobuf(src []byte) (err error)
- type NodeInfo
- func (x *NodeInfo) EmitProtobuf(mm *easyproto.MessageMarshaler)
- func (x *NodeInfo) GetAddresses() []string
- func (x *NodeInfo) GetAttributes() []NodeInfo_Attribute
- func (x *NodeInfo) GetPublicKey() []byte
- func (x *NodeInfo) GetState() NodeInfo_State
- func (x *NodeInfo) MarshalEasyJSON(out *jwriter.Writer)
- func (x *NodeInfo) MarshalJSON() ([]byte, error)
- func (x *NodeInfo) MarshalProtobuf(dst []byte) []byte
- func (x *NodeInfo) SetAddresses(v []string)
- func (x *NodeInfo) SetAttributes(v []NodeInfo_Attribute)
- func (x *NodeInfo) SetPublicKey(v []byte)
- func (x *NodeInfo) SetState(v NodeInfo_State)
- func (x *NodeInfo) StableSize() (size int)
- func (x *NodeInfo) UnmarshalEasyJSON(in *jlexer.Lexer)
- func (x *NodeInfo) UnmarshalJSON(data []byte) error
- func (x *NodeInfo) UnmarshalProtobuf(src []byte) (err error)
- type NodeInfo_Attribute
- func (x *NodeInfo_Attribute) EmitProtobuf(mm *easyproto.MessageMarshaler)
- func (x *NodeInfo_Attribute) GetKey() string
- func (x *NodeInfo_Attribute) GetParents() []string
- func (x *NodeInfo_Attribute) GetValue() string
- func (x *NodeInfo_Attribute) MarshalEasyJSON(out *jwriter.Writer)
- func (x *NodeInfo_Attribute) MarshalJSON() ([]byte, error)
- func (x *NodeInfo_Attribute) MarshalProtobuf(dst []byte) []byte
- func (x *NodeInfo_Attribute) SetKey(v string)
- func (x *NodeInfo_Attribute) SetParents(v []string)
- func (x *NodeInfo_Attribute) SetValue(v string)
- func (x *NodeInfo_Attribute) StableSize() (size int)
- func (x *NodeInfo_Attribute) UnmarshalEasyJSON(in *jlexer.Lexer)
- func (x *NodeInfo_Attribute) UnmarshalJSON(data []byte) error
- func (x *NodeInfo_Attribute) UnmarshalProtobuf(src []byte) (err error)
- type NodeInfo_State
- type Operation
- type PlacementPolicy
- func (x *PlacementPolicy) EmitProtobuf(mm *easyproto.MessageMarshaler)
- func (x *PlacementPolicy) GetContainerBackupFactor() uint32
- func (x *PlacementPolicy) GetFilters() []Filter
- func (x *PlacementPolicy) GetReplicas() []Replica
- func (x *PlacementPolicy) GetSelectors() []Selector
- func (x *PlacementPolicy) GetUnique() bool
- func (x *PlacementPolicy) MarshalEasyJSON(out *jwriter.Writer)
- func (x *PlacementPolicy) MarshalJSON() ([]byte, error)
- func (x *PlacementPolicy) MarshalProtobuf(dst []byte) []byte
- func (x *PlacementPolicy) SetContainerBackupFactor(v uint32)
- func (x *PlacementPolicy) SetFilters(v []Filter)
- func (x *PlacementPolicy) SetReplicas(v []Replica)
- func (x *PlacementPolicy) SetSelectors(v []Selector)
- func (x *PlacementPolicy) SetUnique(v bool)
- func (x *PlacementPolicy) StableSize() (size int)
- func (x *PlacementPolicy) UnmarshalEasyJSON(in *jlexer.Lexer)
- func (x *PlacementPolicy) UnmarshalJSON(data []byte) error
- func (x *PlacementPolicy) UnmarshalProtobuf(src []byte) (err error)
- type Replica
- func (x *Replica) EmitProtobuf(mm *easyproto.MessageMarshaler)
- func (x *Replica) GetCount() uint32
- func (x *Replica) GetEcDataCount() uint32
- func (x *Replica) GetEcParityCount() uint32
- func (x *Replica) GetSelector() string
- func (x *Replica) MarshalEasyJSON(out *jwriter.Writer)
- func (x *Replica) MarshalJSON() ([]byte, error)
- func (x *Replica) MarshalProtobuf(dst []byte) []byte
- func (x *Replica) SetCount(v uint32)
- func (x *Replica) SetEcDataCount(v uint32)
- func (x *Replica) SetEcParityCount(v uint32)
- func (x *Replica) SetSelector(v string)
- func (x *Replica) StableSize() (size int)
- func (x *Replica) UnmarshalEasyJSON(in *jlexer.Lexer)
- func (x *Replica) UnmarshalJSON(data []byte) error
- func (x *Replica) UnmarshalProtobuf(src []byte) (err error)
- type Selector
- func (x *Selector) EmitProtobuf(mm *easyproto.MessageMarshaler)
- func (x *Selector) GetAttribute() string
- func (x *Selector) GetClause() Clause
- func (x *Selector) GetCount() uint32
- func (x *Selector) GetFilter() string
- func (x *Selector) GetName() string
- func (x *Selector) MarshalEasyJSON(out *jwriter.Writer)
- func (x *Selector) MarshalJSON() ([]byte, error)
- func (x *Selector) MarshalProtobuf(dst []byte) []byte
- func (x *Selector) SetAttribute(v string)
- func (x *Selector) SetClause(v Clause)
- func (x *Selector) SetCount(v uint32)
- func (x *Selector) SetFilter(v string)
- func (x *Selector) SetName(v string)
- func (x *Selector) StableSize() (size int)
- func (x *Selector) UnmarshalEasyJSON(in *jlexer.Lexer)
- func (x *Selector) UnmarshalJSON(data []byte) error
- func (x *Selector) UnmarshalProtobuf(src []byte) (err error)
- type UnimplementedNetmapServiceServer
- func (UnimplementedNetmapServiceServer) LocalNodeInfo(context.Context, *LocalNodeInfoRequest) (*LocalNodeInfoResponse, error)
- func (UnimplementedNetmapServiceServer) NetmapSnapshot(context.Context, *NetmapSnapshotRequest) (*NetmapSnapshotResponse, error)
- func (UnimplementedNetmapServiceServer) NetworkInfo(context.Context, *NetworkInfoRequest) (*NetworkInfoResponse, error)
- type UnsafeNetmapServiceServer
Constants ¶
const ( NetmapService_LocalNodeInfo_FullMethodName = "/neo.fs.v2.netmap.NetmapService/LocalNodeInfo" NetmapService_NetworkInfo_FullMethodName = "/neo.fs.v2.netmap.NetmapService/NetworkInfo" NetmapService_NetmapSnapshot_FullMethodName = "/neo.fs.v2.netmap.NetmapService/NetmapSnapshot" )
Variables ¶
var ( Operation_name = map[int32]string{ 0: "OPERATION_UNSPECIFIED", 1: "EQ", 2: "NE", 3: "GT", 4: "GE", 5: "LT", 6: "LE", 7: "OR", 8: "AND", 9: "NOT", 10: "LIKE", } Operation_value = map[string]int32{ "OPERATION_UNSPECIFIED": 0, "EQ": 1, "NE": 2, "GT": 3, "GE": 4, "LT": 5, "LE": 6, "OR": 7, "AND": 8, "NOT": 9, "LIKE": 10, } )
var ( Clause_name = map[int32]string{ 0: "CLAUSE_UNSPECIFIED", 1: "SAME", 2: "DISTINCT", } Clause_value = map[string]int32{ "CLAUSE_UNSPECIFIED": 0, "SAME": 1, "DISTINCT": 2, } )
var ( NodeInfo_State_name = map[int32]string{ 0: "UNSPECIFIED", 1: "ONLINE", 2: "OFFLINE", 3: "MAINTENANCE", } NodeInfo_State_value = map[string]int32{ "UNSPECIFIED": 0, "ONLINE": 1, "OFFLINE": 2, "MAINTENANCE": 3, } )
var NetmapService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "neo.fs.v2.netmap.NetmapService", HandlerType: (*NetmapServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "LocalNodeInfo", Handler: _NetmapService_LocalNodeInfo_Handler, }, { MethodName: "NetworkInfo", Handler: _NetmapService_NetworkInfo_Handler, }, { MethodName: "NetmapSnapshot", Handler: _NetmapService_NetmapSnapshot_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "api/netmap/grpc/service.proto", }
NetmapService_ServiceDesc is the grpc.ServiceDesc for NetmapService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterNetmapServiceServer ¶
func RegisterNetmapServiceServer(s grpc.ServiceRegistrar, srv NetmapServiceServer)
Types ¶
type Filter ¶
type Filter struct { Name string `json:"name"` Key string `json:"key"` Op Operation `json:"op"` Value string `json:"value"` Filters []Filter `json:"filters"` }
func (*Filter) EmitProtobuf ¶
func (x *Filter) EmitProtobuf(mm *easyproto.MessageMarshaler)
func (*Filter) GetFilters ¶
func (*Filter) MarshalEasyJSON ¶
func (*Filter) MarshalJSON ¶
MarshalJSON implements the json.Marshaler interface.
func (*Filter) MarshalProtobuf ¶
MarshalProtobuf implements the encoding.ProtoMarshaler interface.
func (*Filter) SetFilters ¶
func (*Filter) StableSize ¶
StableSize returns the size of x in protobuf format.
Structures with the same field values have the same binary size.
func (*Filter) UnmarshalEasyJSON ¶
func (*Filter) UnmarshalJSON ¶
UnmarshalJSON implements the json.Unmarshaler interface.
func (*Filter) UnmarshalProtobuf ¶
UnmarshalProtobuf implements the encoding.ProtoUnmarshaler interface.
type LocalNodeInfoRequest ¶
type LocalNodeInfoRequest struct { Body *LocalNodeInfoRequest_Body `json:"body"` MetaHeader *grpc.RequestMetaHeader `json:"metaHeader"` VerifyHeader *grpc.RequestVerificationHeader `json:"verifyHeader"` }
func (*LocalNodeInfoRequest) EmitProtobuf ¶
func (x *LocalNodeInfoRequest) EmitProtobuf(mm *easyproto.MessageMarshaler)
func (*LocalNodeInfoRequest) GetBody ¶
func (x *LocalNodeInfoRequest) GetBody() *LocalNodeInfoRequest_Body
func (*LocalNodeInfoRequest) GetMetaHeader ¶
func (x *LocalNodeInfoRequest) GetMetaHeader() *grpc.RequestMetaHeader
func (*LocalNodeInfoRequest) GetVerifyHeader ¶
func (x *LocalNodeInfoRequest) GetVerifyHeader() *grpc.RequestVerificationHeader
func (*LocalNodeInfoRequest) MarshalEasyJSON ¶
func (x *LocalNodeInfoRequest) MarshalEasyJSON(out *jwriter.Writer)
func (*LocalNodeInfoRequest) MarshalJSON ¶
func (x *LocalNodeInfoRequest) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaler interface.
func (*LocalNodeInfoRequest) MarshalProtobuf ¶
func (x *LocalNodeInfoRequest) MarshalProtobuf(dst []byte) []byte
MarshalProtobuf implements the encoding.ProtoMarshaler interface.
func (*LocalNodeInfoRequest) ReadSignedData ¶
func (x *LocalNodeInfoRequest) ReadSignedData(buf []byte) ([]byte, error)
SignedDataSize returns size of the request signed data in bytes.
Structures with the same field values have the same signed data size.
func (*LocalNodeInfoRequest) SetBody ¶
func (x *LocalNodeInfoRequest) SetBody(v *LocalNodeInfoRequest_Body)
func (*LocalNodeInfoRequest) SetMetaHeader ¶
func (x *LocalNodeInfoRequest) SetMetaHeader(v *grpc.RequestMetaHeader)
func (*LocalNodeInfoRequest) SetVerifyHeader ¶
func (x *LocalNodeInfoRequest) SetVerifyHeader(v *grpc.RequestVerificationHeader)
func (*LocalNodeInfoRequest) SignedDataSize ¶
func (x *LocalNodeInfoRequest) SignedDataSize() int
ReadSignedData fills buf with signed data of x. If buffer length is less than x.SignedDataSize(), new buffer is allocated.
Returns any error encountered which did not allow writing the data completely. Otherwise, returns the buffer in which the data is written.
Structures with the same field values have the same signed data.
func (*LocalNodeInfoRequest) StableSize ¶
func (x *LocalNodeInfoRequest) StableSize() (size int)
StableSize returns the size of x in protobuf format.
Structures with the same field values have the same binary size.
func (*LocalNodeInfoRequest) UnmarshalEasyJSON ¶
func (x *LocalNodeInfoRequest) UnmarshalEasyJSON(in *jlexer.Lexer)
func (*LocalNodeInfoRequest) UnmarshalJSON ¶
func (x *LocalNodeInfoRequest) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaler interface.
func (*LocalNodeInfoRequest) UnmarshalProtobuf ¶
func (x *LocalNodeInfoRequest) UnmarshalProtobuf(src []byte) (err error)
UnmarshalProtobuf implements the encoding.ProtoUnmarshaler interface.
type LocalNodeInfoRequest_Body ¶
type LocalNodeInfoRequest_Body struct { }
func (*LocalNodeInfoRequest_Body) EmitProtobuf ¶
func (x *LocalNodeInfoRequest_Body) EmitProtobuf(mm *easyproto.MessageMarshaler)
func (*LocalNodeInfoRequest_Body) MarshalEasyJSON ¶
func (x *LocalNodeInfoRequest_Body) MarshalEasyJSON(out *jwriter.Writer)
func (*LocalNodeInfoRequest_Body) MarshalJSON ¶
func (x *LocalNodeInfoRequest_Body) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaler interface.
func (*LocalNodeInfoRequest_Body) MarshalProtobuf ¶
func (x *LocalNodeInfoRequest_Body) MarshalProtobuf(dst []byte) []byte
MarshalProtobuf implements the encoding.ProtoMarshaler interface.
func (*LocalNodeInfoRequest_Body) StableSize ¶
func (x *LocalNodeInfoRequest_Body) StableSize() (size int)
StableSize returns the size of x in protobuf format.
Structures with the same field values have the same binary size.
func (*LocalNodeInfoRequest_Body) UnmarshalEasyJSON ¶
func (x *LocalNodeInfoRequest_Body) UnmarshalEasyJSON(in *jlexer.Lexer)
func (*LocalNodeInfoRequest_Body) UnmarshalJSON ¶
func (x *LocalNodeInfoRequest_Body) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaler interface.
func (*LocalNodeInfoRequest_Body) UnmarshalProtobuf ¶
func (x *LocalNodeInfoRequest_Body) UnmarshalProtobuf(src []byte) (err error)
UnmarshalProtobuf implements the encoding.ProtoUnmarshaler interface.
type LocalNodeInfoResponse ¶
type LocalNodeInfoResponse struct { Body *LocalNodeInfoResponse_Body `json:"body"` MetaHeader *grpc.ResponseMetaHeader `json:"metaHeader"` VerifyHeader *grpc.ResponseVerificationHeader `json:"verifyHeader"` }
func (*LocalNodeInfoResponse) EmitProtobuf ¶
func (x *LocalNodeInfoResponse) EmitProtobuf(mm *easyproto.MessageMarshaler)
func (*LocalNodeInfoResponse) GetBody ¶
func (x *LocalNodeInfoResponse) GetBody() *LocalNodeInfoResponse_Body
func (*LocalNodeInfoResponse) GetMetaHeader ¶
func (x *LocalNodeInfoResponse) GetMetaHeader() *grpc.ResponseMetaHeader
func (*LocalNodeInfoResponse) GetVerifyHeader ¶
func (x *LocalNodeInfoResponse) GetVerifyHeader() *grpc.ResponseVerificationHeader
func (*LocalNodeInfoResponse) MarshalEasyJSON ¶
func (x *LocalNodeInfoResponse) MarshalEasyJSON(out *jwriter.Writer)
func (*LocalNodeInfoResponse) MarshalJSON ¶
func (x *LocalNodeInfoResponse) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaler interface.
func (*LocalNodeInfoResponse) MarshalProtobuf ¶
func (x *LocalNodeInfoResponse) MarshalProtobuf(dst []byte) []byte
MarshalProtobuf implements the encoding.ProtoMarshaler interface.
func (*LocalNodeInfoResponse) ReadSignedData ¶
func (x *LocalNodeInfoResponse) ReadSignedData(buf []byte) ([]byte, error)
SignedDataSize returns size of the request signed data in bytes.
Structures with the same field values have the same signed data size.
func (*LocalNodeInfoResponse) SetBody ¶
func (x *LocalNodeInfoResponse) SetBody(v *LocalNodeInfoResponse_Body)
func (*LocalNodeInfoResponse) SetMetaHeader ¶
func (x *LocalNodeInfoResponse) SetMetaHeader(v *grpc.ResponseMetaHeader)
func (*LocalNodeInfoResponse) SetVerifyHeader ¶
func (x *LocalNodeInfoResponse) SetVerifyHeader(v *grpc.ResponseVerificationHeader)
func (*LocalNodeInfoResponse) SignedDataSize ¶
func (x *LocalNodeInfoResponse) SignedDataSize() int
ReadSignedData fills buf with signed data of x. If buffer length is less than x.SignedDataSize(), new buffer is allocated.
Returns any error encountered which did not allow writing the data completely. Otherwise, returns the buffer in which the data is written.
Structures with the same field values have the same signed data.
func (*LocalNodeInfoResponse) StableSize ¶
func (x *LocalNodeInfoResponse) StableSize() (size int)
StableSize returns the size of x in protobuf format.
Structures with the same field values have the same binary size.
func (*LocalNodeInfoResponse) UnmarshalEasyJSON ¶
func (x *LocalNodeInfoResponse) UnmarshalEasyJSON(in *jlexer.Lexer)
func (*LocalNodeInfoResponse) UnmarshalJSON ¶
func (x *LocalNodeInfoResponse) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaler interface.
func (*LocalNodeInfoResponse) UnmarshalProtobuf ¶
func (x *LocalNodeInfoResponse) UnmarshalProtobuf(src []byte) (err error)
UnmarshalProtobuf implements the encoding.ProtoUnmarshaler interface.
type LocalNodeInfoResponse_Body ¶
type LocalNodeInfoResponse_Body struct { Version *grpc1.Version `json:"version"` NodeInfo *NodeInfo `json:"nodeInfo"` }
func (*LocalNodeInfoResponse_Body) EmitProtobuf ¶
func (x *LocalNodeInfoResponse_Body) EmitProtobuf(mm *easyproto.MessageMarshaler)
func (*LocalNodeInfoResponse_Body) GetNodeInfo ¶
func (x *LocalNodeInfoResponse_Body) GetNodeInfo() *NodeInfo
func (*LocalNodeInfoResponse_Body) GetVersion ¶
func (x *LocalNodeInfoResponse_Body) GetVersion() *grpc1.Version
func (*LocalNodeInfoResponse_Body) MarshalEasyJSON ¶
func (x *LocalNodeInfoResponse_Body) MarshalEasyJSON(out *jwriter.Writer)
func (*LocalNodeInfoResponse_Body) MarshalJSON ¶
func (x *LocalNodeInfoResponse_Body) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaler interface.
func (*LocalNodeInfoResponse_Body) MarshalProtobuf ¶
func (x *LocalNodeInfoResponse_Body) MarshalProtobuf(dst []byte) []byte
MarshalProtobuf implements the encoding.ProtoMarshaler interface.
func (*LocalNodeInfoResponse_Body) SetNodeInfo ¶
func (x *LocalNodeInfoResponse_Body) SetNodeInfo(v *NodeInfo)
func (*LocalNodeInfoResponse_Body) SetVersion ¶
func (x *LocalNodeInfoResponse_Body) SetVersion(v *grpc1.Version)
func (*LocalNodeInfoResponse_Body) StableSize ¶
func (x *LocalNodeInfoResponse_Body) StableSize() (size int)
StableSize returns the size of x in protobuf format.
Structures with the same field values have the same binary size.
func (*LocalNodeInfoResponse_Body) UnmarshalEasyJSON ¶
func (x *LocalNodeInfoResponse_Body) UnmarshalEasyJSON(in *jlexer.Lexer)
func (*LocalNodeInfoResponse_Body) UnmarshalJSON ¶
func (x *LocalNodeInfoResponse_Body) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaler interface.
func (*LocalNodeInfoResponse_Body) UnmarshalProtobuf ¶
func (x *LocalNodeInfoResponse_Body) UnmarshalProtobuf(src []byte) (err error)
UnmarshalProtobuf implements the encoding.ProtoUnmarshaler interface.
type Netmap ¶
func (*Netmap) EmitProtobuf ¶
func (x *Netmap) EmitProtobuf(mm *easyproto.MessageMarshaler)
func (*Netmap) MarshalEasyJSON ¶
func (*Netmap) MarshalJSON ¶
MarshalJSON implements the json.Marshaler interface.
func (*Netmap) MarshalProtobuf ¶
MarshalProtobuf implements the encoding.ProtoMarshaler interface.
func (*Netmap) StableSize ¶
StableSize returns the size of x in protobuf format.
Structures with the same field values have the same binary size.
func (*Netmap) UnmarshalEasyJSON ¶
func (*Netmap) UnmarshalJSON ¶
UnmarshalJSON implements the json.Unmarshaler interface.
func (*Netmap) UnmarshalProtobuf ¶
UnmarshalProtobuf implements the encoding.ProtoUnmarshaler interface.
type NetmapServiceClient ¶
type NetmapServiceClient interface { // Get NodeInfo structure from the particular node directly. // Node information can be taken from `Netmap` smart contract. In some cases, // though, one may want to get recent information directly or to talk to the // node not yet present in the `Network Map` to find out what API version can // be used for further communication. This can be also used to check if a node // is up and running. // // Statuses: // - **OK** (0, SECTION_SUCCESS): // information about the server has been successfully read; // - Common failures (SECTION_FAILURE_COMMON). LocalNodeInfo(ctx context.Context, in *LocalNodeInfoRequest, opts ...grpc.CallOption) (*LocalNodeInfoResponse, error) // Read recent information about the FrostFS network. // // Statuses: // - **OK** (0, SECTION_SUCCESS): // information about the current network state has been successfully read; // - Common failures (SECTION_FAILURE_COMMON). NetworkInfo(ctx context.Context, in *NetworkInfoRequest, opts ...grpc.CallOption) (*NetworkInfoResponse, error) // Returns network map snapshot of the current FrostFS epoch. // // Statuses: // - **OK** (0, SECTION_SUCCESS): // information about the current network map has been successfully read; // - Common failures (SECTION_FAILURE_COMMON). NetmapSnapshot(ctx context.Context, in *NetmapSnapshotRequest, opts ...grpc.CallOption) (*NetmapSnapshotResponse, error) }
NetmapServiceClient is the client API for NetmapService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewNetmapServiceClient ¶
func NewNetmapServiceClient(cc grpc.ClientConnInterface) NetmapServiceClient
type NetmapServiceServer ¶
type NetmapServiceServer interface { // Get NodeInfo structure from the particular node directly. // Node information can be taken from `Netmap` smart contract. In some cases, // though, one may want to get recent information directly or to talk to the // node not yet present in the `Network Map` to find out what API version can // be used for further communication. This can be also used to check if a node // is up and running. // // Statuses: // - **OK** (0, SECTION_SUCCESS): // information about the server has been successfully read; // - Common failures (SECTION_FAILURE_COMMON). LocalNodeInfo(context.Context, *LocalNodeInfoRequest) (*LocalNodeInfoResponse, error) // Read recent information about the FrostFS network. // // Statuses: // - **OK** (0, SECTION_SUCCESS): // information about the current network state has been successfully read; // - Common failures (SECTION_FAILURE_COMMON). NetworkInfo(context.Context, *NetworkInfoRequest) (*NetworkInfoResponse, error) // Returns network map snapshot of the current FrostFS epoch. // // Statuses: // - **OK** (0, SECTION_SUCCESS): // information about the current network map has been successfully read; // - Common failures (SECTION_FAILURE_COMMON). NetmapSnapshot(context.Context, *NetmapSnapshotRequest) (*NetmapSnapshotResponse, error) }
NetmapServiceServer is the server API for NetmapService service. All implementations should embed UnimplementedNetmapServiceServer for forward compatibility
type NetmapSnapshotRequest ¶
type NetmapSnapshotRequest struct { Body *NetmapSnapshotRequest_Body `json:"body"` MetaHeader *grpc.RequestMetaHeader `json:"metaHeader"` VerifyHeader *grpc.RequestVerificationHeader `json:"verifyHeader"` }
func (*NetmapSnapshotRequest) EmitProtobuf ¶
func (x *NetmapSnapshotRequest) EmitProtobuf(mm *easyproto.MessageMarshaler)
func (*NetmapSnapshotRequest) GetBody ¶
func (x *NetmapSnapshotRequest) GetBody() *NetmapSnapshotRequest_Body
func (*NetmapSnapshotRequest) GetMetaHeader ¶
func (x *NetmapSnapshotRequest) GetMetaHeader() *grpc.RequestMetaHeader
func (*NetmapSnapshotRequest) GetVerifyHeader ¶
func (x *NetmapSnapshotRequest) GetVerifyHeader() *grpc.RequestVerificationHeader
func (*NetmapSnapshotRequest) MarshalEasyJSON ¶
func (x *NetmapSnapshotRequest) MarshalEasyJSON(out *jwriter.Writer)
func (*NetmapSnapshotRequest) MarshalJSON ¶
func (x *NetmapSnapshotRequest) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaler interface.
func (*NetmapSnapshotRequest) MarshalProtobuf ¶
func (x *NetmapSnapshotRequest) MarshalProtobuf(dst []byte) []byte
MarshalProtobuf implements the encoding.ProtoMarshaler interface.
func (*NetmapSnapshotRequest) ReadSignedData ¶
func (x *NetmapSnapshotRequest) ReadSignedData(buf []byte) ([]byte, error)
SignedDataSize returns size of the request signed data in bytes.
Structures with the same field values have the same signed data size.
func (*NetmapSnapshotRequest) SetBody ¶
func (x *NetmapSnapshotRequest) SetBody(v *NetmapSnapshotRequest_Body)
func (*NetmapSnapshotRequest) SetMetaHeader ¶
func (x *NetmapSnapshotRequest) SetMetaHeader(v *grpc.RequestMetaHeader)
func (*NetmapSnapshotRequest) SetVerifyHeader ¶
func (x *NetmapSnapshotRequest) SetVerifyHeader(v *grpc.RequestVerificationHeader)
func (*NetmapSnapshotRequest) SignedDataSize ¶
func (x *NetmapSnapshotRequest) SignedDataSize() int
ReadSignedData fills buf with signed data of x. If buffer length is less than x.SignedDataSize(), new buffer is allocated.
Returns any error encountered which did not allow writing the data completely. Otherwise, returns the buffer in which the data is written.
Structures with the same field values have the same signed data.
func (*NetmapSnapshotRequest) StableSize ¶
func (x *NetmapSnapshotRequest) StableSize() (size int)
StableSize returns the size of x in protobuf format.
Structures with the same field values have the same binary size.
func (*NetmapSnapshotRequest) UnmarshalEasyJSON ¶
func (x *NetmapSnapshotRequest) UnmarshalEasyJSON(in *jlexer.Lexer)
func (*NetmapSnapshotRequest) UnmarshalJSON ¶
func (x *NetmapSnapshotRequest) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaler interface.
func (*NetmapSnapshotRequest) UnmarshalProtobuf ¶
func (x *NetmapSnapshotRequest) UnmarshalProtobuf(src []byte) (err error)
UnmarshalProtobuf implements the encoding.ProtoUnmarshaler interface.
type NetmapSnapshotRequest_Body ¶
type NetmapSnapshotRequest_Body struct { }
func (*NetmapSnapshotRequest_Body) EmitProtobuf ¶
func (x *NetmapSnapshotRequest_Body) EmitProtobuf(mm *easyproto.MessageMarshaler)
func (*NetmapSnapshotRequest_Body) MarshalEasyJSON ¶
func (x *NetmapSnapshotRequest_Body) MarshalEasyJSON(out *jwriter.Writer)
func (*NetmapSnapshotRequest_Body) MarshalJSON ¶
func (x *NetmapSnapshotRequest_Body) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaler interface.
func (*NetmapSnapshotRequest_Body) MarshalProtobuf ¶
func (x *NetmapSnapshotRequest_Body) MarshalProtobuf(dst []byte) []byte
MarshalProtobuf implements the encoding.ProtoMarshaler interface.
func (*NetmapSnapshotRequest_Body) StableSize ¶
func (x *NetmapSnapshotRequest_Body) StableSize() (size int)
StableSize returns the size of x in protobuf format.
Structures with the same field values have the same binary size.
func (*NetmapSnapshotRequest_Body) UnmarshalEasyJSON ¶
func (x *NetmapSnapshotRequest_Body) UnmarshalEasyJSON(in *jlexer.Lexer)
func (*NetmapSnapshotRequest_Body) UnmarshalJSON ¶
func (x *NetmapSnapshotRequest_Body) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaler interface.
func (*NetmapSnapshotRequest_Body) UnmarshalProtobuf ¶
func (x *NetmapSnapshotRequest_Body) UnmarshalProtobuf(src []byte) (err error)
UnmarshalProtobuf implements the encoding.ProtoUnmarshaler interface.
type NetmapSnapshotResponse ¶
type NetmapSnapshotResponse struct { Body *NetmapSnapshotResponse_Body `json:"body"` MetaHeader *grpc.ResponseMetaHeader `json:"metaHeader"` VerifyHeader *grpc.ResponseVerificationHeader `json:"verifyHeader"` }
func (*NetmapSnapshotResponse) EmitProtobuf ¶
func (x *NetmapSnapshotResponse) EmitProtobuf(mm *easyproto.MessageMarshaler)
func (*NetmapSnapshotResponse) GetBody ¶
func (x *NetmapSnapshotResponse) GetBody() *NetmapSnapshotResponse_Body
func (*NetmapSnapshotResponse) GetMetaHeader ¶
func (x *NetmapSnapshotResponse) GetMetaHeader() *grpc.ResponseMetaHeader
func (*NetmapSnapshotResponse) GetVerifyHeader ¶
func (x *NetmapSnapshotResponse) GetVerifyHeader() *grpc.ResponseVerificationHeader
func (*NetmapSnapshotResponse) MarshalEasyJSON ¶
func (x *NetmapSnapshotResponse) MarshalEasyJSON(out *jwriter.Writer)
func (*NetmapSnapshotResponse) MarshalJSON ¶
func (x *NetmapSnapshotResponse) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaler interface.
func (*NetmapSnapshotResponse) MarshalProtobuf ¶
func (x *NetmapSnapshotResponse) MarshalProtobuf(dst []byte) []byte
MarshalProtobuf implements the encoding.ProtoMarshaler interface.
func (*NetmapSnapshotResponse) ReadSignedData ¶
func (x *NetmapSnapshotResponse) ReadSignedData(buf []byte) ([]byte, error)
SignedDataSize returns size of the request signed data in bytes.
Structures with the same field values have the same signed data size.
func (*NetmapSnapshotResponse) SetBody ¶
func (x *NetmapSnapshotResponse) SetBody(v *NetmapSnapshotResponse_Body)
func (*NetmapSnapshotResponse) SetMetaHeader ¶
func (x *NetmapSnapshotResponse) SetMetaHeader(v *grpc.ResponseMetaHeader)
func (*NetmapSnapshotResponse) SetVerifyHeader ¶
func (x *NetmapSnapshotResponse) SetVerifyHeader(v *grpc.ResponseVerificationHeader)
func (*NetmapSnapshotResponse) SignedDataSize ¶
func (x *NetmapSnapshotResponse) SignedDataSize() int
ReadSignedData fills buf with signed data of x. If buffer length is less than x.SignedDataSize(), new buffer is allocated.
Returns any error encountered which did not allow writing the data completely. Otherwise, returns the buffer in which the data is written.
Structures with the same field values have the same signed data.
func (*NetmapSnapshotResponse) StableSize ¶
func (x *NetmapSnapshotResponse) StableSize() (size int)
StableSize returns the size of x in protobuf format.
Structures with the same field values have the same binary size.
func (*NetmapSnapshotResponse) UnmarshalEasyJSON ¶
func (x *NetmapSnapshotResponse) UnmarshalEasyJSON(in *jlexer.Lexer)
func (*NetmapSnapshotResponse) UnmarshalJSON ¶
func (x *NetmapSnapshotResponse) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaler interface.
func (*NetmapSnapshotResponse) UnmarshalProtobuf ¶
func (x *NetmapSnapshotResponse) UnmarshalProtobuf(src []byte) (err error)
UnmarshalProtobuf implements the encoding.ProtoUnmarshaler interface.
type NetmapSnapshotResponse_Body ¶
type NetmapSnapshotResponse_Body struct {
Netmap *Netmap `json:"netmap"`
}
func (*NetmapSnapshotResponse_Body) EmitProtobuf ¶
func (x *NetmapSnapshotResponse_Body) EmitProtobuf(mm *easyproto.MessageMarshaler)
func (*NetmapSnapshotResponse_Body) GetNetmap ¶
func (x *NetmapSnapshotResponse_Body) GetNetmap() *Netmap
func (*NetmapSnapshotResponse_Body) MarshalEasyJSON ¶
func (x *NetmapSnapshotResponse_Body) MarshalEasyJSON(out *jwriter.Writer)
func (*NetmapSnapshotResponse_Body) MarshalJSON ¶
func (x *NetmapSnapshotResponse_Body) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaler interface.
func (*NetmapSnapshotResponse_Body) MarshalProtobuf ¶
func (x *NetmapSnapshotResponse_Body) MarshalProtobuf(dst []byte) []byte
MarshalProtobuf implements the encoding.ProtoMarshaler interface.
func (*NetmapSnapshotResponse_Body) SetNetmap ¶
func (x *NetmapSnapshotResponse_Body) SetNetmap(v *Netmap)
func (*NetmapSnapshotResponse_Body) StableSize ¶
func (x *NetmapSnapshotResponse_Body) StableSize() (size int)
StableSize returns the size of x in protobuf format.
Structures with the same field values have the same binary size.
func (*NetmapSnapshotResponse_Body) UnmarshalEasyJSON ¶
func (x *NetmapSnapshotResponse_Body) UnmarshalEasyJSON(in *jlexer.Lexer)
func (*NetmapSnapshotResponse_Body) UnmarshalJSON ¶
func (x *NetmapSnapshotResponse_Body) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaler interface.
func (*NetmapSnapshotResponse_Body) UnmarshalProtobuf ¶
func (x *NetmapSnapshotResponse_Body) UnmarshalProtobuf(src []byte) (err error)
UnmarshalProtobuf implements the encoding.ProtoUnmarshaler interface.
type NetworkConfig ¶
type NetworkConfig struct {
Parameters []NetworkConfig_Parameter `json:"parameters"`
}
func (*NetworkConfig) EmitProtobuf ¶
func (x *NetworkConfig) EmitProtobuf(mm *easyproto.MessageMarshaler)
func (*NetworkConfig) GetParameters ¶
func (x *NetworkConfig) GetParameters() []NetworkConfig_Parameter
func (*NetworkConfig) MarshalEasyJSON ¶
func (x *NetworkConfig) MarshalEasyJSON(out *jwriter.Writer)
func (*NetworkConfig) MarshalJSON ¶
func (x *NetworkConfig) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaler interface.
func (*NetworkConfig) MarshalProtobuf ¶
func (x *NetworkConfig) MarshalProtobuf(dst []byte) []byte
MarshalProtobuf implements the encoding.ProtoMarshaler interface.
func (*NetworkConfig) SetParameters ¶
func (x *NetworkConfig) SetParameters(v []NetworkConfig_Parameter)
func (*NetworkConfig) StableSize ¶
func (x *NetworkConfig) StableSize() (size int)
StableSize returns the size of x in protobuf format.
Structures with the same field values have the same binary size.
func (*NetworkConfig) UnmarshalEasyJSON ¶
func (x *NetworkConfig) UnmarshalEasyJSON(in *jlexer.Lexer)
func (*NetworkConfig) UnmarshalJSON ¶
func (x *NetworkConfig) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaler interface.
func (*NetworkConfig) UnmarshalProtobuf ¶
func (x *NetworkConfig) UnmarshalProtobuf(src []byte) (err error)
UnmarshalProtobuf implements the encoding.ProtoUnmarshaler interface.
type NetworkConfig_Parameter ¶
func (*NetworkConfig_Parameter) EmitProtobuf ¶
func (x *NetworkConfig_Parameter) EmitProtobuf(mm *easyproto.MessageMarshaler)
func (*NetworkConfig_Parameter) GetKey ¶
func (x *NetworkConfig_Parameter) GetKey() []byte
func (*NetworkConfig_Parameter) GetValue ¶
func (x *NetworkConfig_Parameter) GetValue() []byte
func (*NetworkConfig_Parameter) MarshalEasyJSON ¶
func (x *NetworkConfig_Parameter) MarshalEasyJSON(out *jwriter.Writer)
func (*NetworkConfig_Parameter) MarshalJSON ¶
func (x *NetworkConfig_Parameter) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaler interface.
func (*NetworkConfig_Parameter) MarshalProtobuf ¶
func (x *NetworkConfig_Parameter) MarshalProtobuf(dst []byte) []byte
MarshalProtobuf implements the encoding.ProtoMarshaler interface.
func (*NetworkConfig_Parameter) SetKey ¶
func (x *NetworkConfig_Parameter) SetKey(v []byte)
func (*NetworkConfig_Parameter) SetValue ¶
func (x *NetworkConfig_Parameter) SetValue(v []byte)
func (*NetworkConfig_Parameter) StableSize ¶
func (x *NetworkConfig_Parameter) StableSize() (size int)
StableSize returns the size of x in protobuf format.
Structures with the same field values have the same binary size.
func (*NetworkConfig_Parameter) UnmarshalEasyJSON ¶
func (x *NetworkConfig_Parameter) UnmarshalEasyJSON(in *jlexer.Lexer)
func (*NetworkConfig_Parameter) UnmarshalJSON ¶
func (x *NetworkConfig_Parameter) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaler interface.
func (*NetworkConfig_Parameter) UnmarshalProtobuf ¶
func (x *NetworkConfig_Parameter) UnmarshalProtobuf(src []byte) (err error)
UnmarshalProtobuf implements the encoding.ProtoUnmarshaler interface.
type NetworkInfo ¶
type NetworkInfo struct { CurrentEpoch uint64 `json:"currentEpoch"` MagicNumber uint64 `json:"magicNumber"` MsPerBlock int64 `json:"msPerBlock"` NetworkConfig *NetworkConfig `json:"networkConfig"` }
func (*NetworkInfo) EmitProtobuf ¶
func (x *NetworkInfo) EmitProtobuf(mm *easyproto.MessageMarshaler)
func (*NetworkInfo) GetCurrentEpoch ¶
func (x *NetworkInfo) GetCurrentEpoch() uint64
func (*NetworkInfo) GetMagicNumber ¶
func (x *NetworkInfo) GetMagicNumber() uint64
func (*NetworkInfo) GetMsPerBlock ¶
func (x *NetworkInfo) GetMsPerBlock() int64
func (*NetworkInfo) GetNetworkConfig ¶
func (x *NetworkInfo) GetNetworkConfig() *NetworkConfig
func (*NetworkInfo) MarshalEasyJSON ¶
func (x *NetworkInfo) MarshalEasyJSON(out *jwriter.Writer)
func (*NetworkInfo) MarshalJSON ¶
func (x *NetworkInfo) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaler interface.
func (*NetworkInfo) MarshalProtobuf ¶
func (x *NetworkInfo) MarshalProtobuf(dst []byte) []byte
MarshalProtobuf implements the encoding.ProtoMarshaler interface.
func (*NetworkInfo) SetCurrentEpoch ¶
func (x *NetworkInfo) SetCurrentEpoch(v uint64)
func (*NetworkInfo) SetMagicNumber ¶
func (x *NetworkInfo) SetMagicNumber(v uint64)
func (*NetworkInfo) SetMsPerBlock ¶
func (x *NetworkInfo) SetMsPerBlock(v int64)
func (*NetworkInfo) SetNetworkConfig ¶
func (x *NetworkInfo) SetNetworkConfig(v *NetworkConfig)
func (*NetworkInfo) StableSize ¶
func (x *NetworkInfo) StableSize() (size int)
StableSize returns the size of x in protobuf format.
Structures with the same field values have the same binary size.
func (*NetworkInfo) UnmarshalEasyJSON ¶
func (x *NetworkInfo) UnmarshalEasyJSON(in *jlexer.Lexer)
func (*NetworkInfo) UnmarshalJSON ¶
func (x *NetworkInfo) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaler interface.
func (*NetworkInfo) UnmarshalProtobuf ¶
func (x *NetworkInfo) UnmarshalProtobuf(src []byte) (err error)
UnmarshalProtobuf implements the encoding.ProtoUnmarshaler interface.
type NetworkInfoRequest ¶
type NetworkInfoRequest struct { Body *NetworkInfoRequest_Body `json:"body"` MetaHeader *grpc.RequestMetaHeader `json:"metaHeader"` VerifyHeader *grpc.RequestVerificationHeader `json:"verifyHeader"` }
func (*NetworkInfoRequest) EmitProtobuf ¶
func (x *NetworkInfoRequest) EmitProtobuf(mm *easyproto.MessageMarshaler)
func (*NetworkInfoRequest) GetBody ¶
func (x *NetworkInfoRequest) GetBody() *NetworkInfoRequest_Body
func (*NetworkInfoRequest) GetMetaHeader ¶
func (x *NetworkInfoRequest) GetMetaHeader() *grpc.RequestMetaHeader
func (*NetworkInfoRequest) GetVerifyHeader ¶
func (x *NetworkInfoRequest) GetVerifyHeader() *grpc.RequestVerificationHeader
func (*NetworkInfoRequest) MarshalEasyJSON ¶
func (x *NetworkInfoRequest) MarshalEasyJSON(out *jwriter.Writer)
func (*NetworkInfoRequest) MarshalJSON ¶
func (x *NetworkInfoRequest) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaler interface.
func (*NetworkInfoRequest) MarshalProtobuf ¶
func (x *NetworkInfoRequest) MarshalProtobuf(dst []byte) []byte
MarshalProtobuf implements the encoding.ProtoMarshaler interface.
func (*NetworkInfoRequest) ReadSignedData ¶
func (x *NetworkInfoRequest) ReadSignedData(buf []byte) ([]byte, error)
SignedDataSize returns size of the request signed data in bytes.
Structures with the same field values have the same signed data size.
func (*NetworkInfoRequest) SetBody ¶
func (x *NetworkInfoRequest) SetBody(v *NetworkInfoRequest_Body)
func (*NetworkInfoRequest) SetMetaHeader ¶
func (x *NetworkInfoRequest) SetMetaHeader(v *grpc.RequestMetaHeader)
func (*NetworkInfoRequest) SetVerifyHeader ¶
func (x *NetworkInfoRequest) SetVerifyHeader(v *grpc.RequestVerificationHeader)
func (*NetworkInfoRequest) SignedDataSize ¶
func (x *NetworkInfoRequest) SignedDataSize() int
ReadSignedData fills buf with signed data of x. If buffer length is less than x.SignedDataSize(), new buffer is allocated.
Returns any error encountered which did not allow writing the data completely. Otherwise, returns the buffer in which the data is written.
Structures with the same field values have the same signed data.
func (*NetworkInfoRequest) StableSize ¶
func (x *NetworkInfoRequest) StableSize() (size int)
StableSize returns the size of x in protobuf format.
Structures with the same field values have the same binary size.
func (*NetworkInfoRequest) UnmarshalEasyJSON ¶
func (x *NetworkInfoRequest) UnmarshalEasyJSON(in *jlexer.Lexer)
func (*NetworkInfoRequest) UnmarshalJSON ¶
func (x *NetworkInfoRequest) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaler interface.
func (*NetworkInfoRequest) UnmarshalProtobuf ¶
func (x *NetworkInfoRequest) UnmarshalProtobuf(src []byte) (err error)
UnmarshalProtobuf implements the encoding.ProtoUnmarshaler interface.
type NetworkInfoRequest_Body ¶
type NetworkInfoRequest_Body struct { }
func (*NetworkInfoRequest_Body) EmitProtobuf ¶
func (x *NetworkInfoRequest_Body) EmitProtobuf(mm *easyproto.MessageMarshaler)
func (*NetworkInfoRequest_Body) MarshalEasyJSON ¶
func (x *NetworkInfoRequest_Body) MarshalEasyJSON(out *jwriter.Writer)
func (*NetworkInfoRequest_Body) MarshalJSON ¶
func (x *NetworkInfoRequest_Body) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaler interface.
func (*NetworkInfoRequest_Body) MarshalProtobuf ¶
func (x *NetworkInfoRequest_Body) MarshalProtobuf(dst []byte) []byte
MarshalProtobuf implements the encoding.ProtoMarshaler interface.
func (*NetworkInfoRequest_Body) StableSize ¶
func (x *NetworkInfoRequest_Body) StableSize() (size int)
StableSize returns the size of x in protobuf format.
Structures with the same field values have the same binary size.
func (*NetworkInfoRequest_Body) UnmarshalEasyJSON ¶
func (x *NetworkInfoRequest_Body) UnmarshalEasyJSON(in *jlexer.Lexer)
func (*NetworkInfoRequest_Body) UnmarshalJSON ¶
func (x *NetworkInfoRequest_Body) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaler interface.
func (*NetworkInfoRequest_Body) UnmarshalProtobuf ¶
func (x *NetworkInfoRequest_Body) UnmarshalProtobuf(src []byte) (err error)
UnmarshalProtobuf implements the encoding.ProtoUnmarshaler interface.
type NetworkInfoResponse ¶
type NetworkInfoResponse struct { Body *NetworkInfoResponse_Body `json:"body"` MetaHeader *grpc.ResponseMetaHeader `json:"metaHeader"` VerifyHeader *grpc.ResponseVerificationHeader `json:"verifyHeader"` }
func (*NetworkInfoResponse) EmitProtobuf ¶
func (x *NetworkInfoResponse) EmitProtobuf(mm *easyproto.MessageMarshaler)
func (*NetworkInfoResponse) GetBody ¶
func (x *NetworkInfoResponse) GetBody() *NetworkInfoResponse_Body
func (*NetworkInfoResponse) GetMetaHeader ¶
func (x *NetworkInfoResponse) GetMetaHeader() *grpc.ResponseMetaHeader
func (*NetworkInfoResponse) GetVerifyHeader ¶
func (x *NetworkInfoResponse) GetVerifyHeader() *grpc.ResponseVerificationHeader
func (*NetworkInfoResponse) MarshalEasyJSON ¶
func (x *NetworkInfoResponse) MarshalEasyJSON(out *jwriter.Writer)
func (*NetworkInfoResponse) MarshalJSON ¶
func (x *NetworkInfoResponse) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaler interface.
func (*NetworkInfoResponse) MarshalProtobuf ¶
func (x *NetworkInfoResponse) MarshalProtobuf(dst []byte) []byte
MarshalProtobuf implements the encoding.ProtoMarshaler interface.
func (*NetworkInfoResponse) ReadSignedData ¶
func (x *NetworkInfoResponse) ReadSignedData(buf []byte) ([]byte, error)
SignedDataSize returns size of the request signed data in bytes.
Structures with the same field values have the same signed data size.
func (*NetworkInfoResponse) SetBody ¶
func (x *NetworkInfoResponse) SetBody(v *NetworkInfoResponse_Body)
func (*NetworkInfoResponse) SetMetaHeader ¶
func (x *NetworkInfoResponse) SetMetaHeader(v *grpc.ResponseMetaHeader)
func (*NetworkInfoResponse) SetVerifyHeader ¶
func (x *NetworkInfoResponse) SetVerifyHeader(v *grpc.ResponseVerificationHeader)
func (*NetworkInfoResponse) SignedDataSize ¶
func (x *NetworkInfoResponse) SignedDataSize() int
ReadSignedData fills buf with signed data of x. If buffer length is less than x.SignedDataSize(), new buffer is allocated.
Returns any error encountered which did not allow writing the data completely. Otherwise, returns the buffer in which the data is written.
Structures with the same field values have the same signed data.
func (*NetworkInfoResponse) StableSize ¶
func (x *NetworkInfoResponse) StableSize() (size int)
StableSize returns the size of x in protobuf format.
Structures with the same field values have the same binary size.
func (*NetworkInfoResponse) UnmarshalEasyJSON ¶
func (x *NetworkInfoResponse) UnmarshalEasyJSON(in *jlexer.Lexer)
func (*NetworkInfoResponse) UnmarshalJSON ¶
func (x *NetworkInfoResponse) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaler interface.
func (*NetworkInfoResponse) UnmarshalProtobuf ¶
func (x *NetworkInfoResponse) UnmarshalProtobuf(src []byte) (err error)
UnmarshalProtobuf implements the encoding.ProtoUnmarshaler interface.
type NetworkInfoResponse_Body ¶
type NetworkInfoResponse_Body struct {
NetworkInfo *NetworkInfo `json:"networkInfo"`
}
func (*NetworkInfoResponse_Body) EmitProtobuf ¶
func (x *NetworkInfoResponse_Body) EmitProtobuf(mm *easyproto.MessageMarshaler)
func (*NetworkInfoResponse_Body) GetNetworkInfo ¶
func (x *NetworkInfoResponse_Body) GetNetworkInfo() *NetworkInfo
func (*NetworkInfoResponse_Body) MarshalEasyJSON ¶
func (x *NetworkInfoResponse_Body) MarshalEasyJSON(out *jwriter.Writer)
func (*NetworkInfoResponse_Body) MarshalJSON ¶
func (x *NetworkInfoResponse_Body) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaler interface.
func (*NetworkInfoResponse_Body) MarshalProtobuf ¶
func (x *NetworkInfoResponse_Body) MarshalProtobuf(dst []byte) []byte
MarshalProtobuf implements the encoding.ProtoMarshaler interface.
func (*NetworkInfoResponse_Body) SetNetworkInfo ¶
func (x *NetworkInfoResponse_Body) SetNetworkInfo(v *NetworkInfo)
func (*NetworkInfoResponse_Body) StableSize ¶
func (x *NetworkInfoResponse_Body) StableSize() (size int)
StableSize returns the size of x in protobuf format.
Structures with the same field values have the same binary size.
func (*NetworkInfoResponse_Body) UnmarshalEasyJSON ¶
func (x *NetworkInfoResponse_Body) UnmarshalEasyJSON(in *jlexer.Lexer)
func (*NetworkInfoResponse_Body) UnmarshalJSON ¶
func (x *NetworkInfoResponse_Body) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaler interface.
func (*NetworkInfoResponse_Body) UnmarshalProtobuf ¶
func (x *NetworkInfoResponse_Body) UnmarshalProtobuf(src []byte) (err error)
UnmarshalProtobuf implements the encoding.ProtoUnmarshaler interface.
type NodeInfo ¶
type NodeInfo struct { PublicKey []byte `json:"publicKey"` Addresses []string `json:"addresses"` Attributes []NodeInfo_Attribute `json:"attributes"` State NodeInfo_State `json:"state"` }
func (*NodeInfo) EmitProtobuf ¶
func (x *NodeInfo) EmitProtobuf(mm *easyproto.MessageMarshaler)
func (*NodeInfo) GetAddresses ¶
func (*NodeInfo) GetAttributes ¶
func (x *NodeInfo) GetAttributes() []NodeInfo_Attribute
func (*NodeInfo) GetPublicKey ¶
func (*NodeInfo) GetState ¶
func (x *NodeInfo) GetState() NodeInfo_State
func (*NodeInfo) MarshalEasyJSON ¶
func (*NodeInfo) MarshalJSON ¶
MarshalJSON implements the json.Marshaler interface.
func (*NodeInfo) MarshalProtobuf ¶
MarshalProtobuf implements the encoding.ProtoMarshaler interface.
func (*NodeInfo) SetAddresses ¶
func (*NodeInfo) SetAttributes ¶
func (x *NodeInfo) SetAttributes(v []NodeInfo_Attribute)
func (*NodeInfo) SetPublicKey ¶
func (*NodeInfo) SetState ¶
func (x *NodeInfo) SetState(v NodeInfo_State)
func (*NodeInfo) StableSize ¶
StableSize returns the size of x in protobuf format.
Structures with the same field values have the same binary size.
func (*NodeInfo) UnmarshalEasyJSON ¶
func (*NodeInfo) UnmarshalJSON ¶
UnmarshalJSON implements the json.Unmarshaler interface.
func (*NodeInfo) UnmarshalProtobuf ¶
UnmarshalProtobuf implements the encoding.ProtoUnmarshaler interface.
type NodeInfo_Attribute ¶
type NodeInfo_Attribute struct { Key string `json:"key"` Value string `json:"value"` Parents []string `json:"parents"` }
func (*NodeInfo_Attribute) EmitProtobuf ¶
func (x *NodeInfo_Attribute) EmitProtobuf(mm *easyproto.MessageMarshaler)
func (*NodeInfo_Attribute) GetKey ¶
func (x *NodeInfo_Attribute) GetKey() string
func (*NodeInfo_Attribute) GetParents ¶
func (x *NodeInfo_Attribute) GetParents() []string
func (*NodeInfo_Attribute) GetValue ¶
func (x *NodeInfo_Attribute) GetValue() string
func (*NodeInfo_Attribute) MarshalEasyJSON ¶
func (x *NodeInfo_Attribute) MarshalEasyJSON(out *jwriter.Writer)
func (*NodeInfo_Attribute) MarshalJSON ¶
func (x *NodeInfo_Attribute) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaler interface.
func (*NodeInfo_Attribute) MarshalProtobuf ¶
func (x *NodeInfo_Attribute) MarshalProtobuf(dst []byte) []byte
MarshalProtobuf implements the encoding.ProtoMarshaler interface.
func (*NodeInfo_Attribute) SetKey ¶
func (x *NodeInfo_Attribute) SetKey(v string)
func (*NodeInfo_Attribute) SetParents ¶
func (x *NodeInfo_Attribute) SetParents(v []string)
func (*NodeInfo_Attribute) SetValue ¶
func (x *NodeInfo_Attribute) SetValue(v string)
func (*NodeInfo_Attribute) StableSize ¶
func (x *NodeInfo_Attribute) StableSize() (size int)
StableSize returns the size of x in protobuf format.
Structures with the same field values have the same binary size.
func (*NodeInfo_Attribute) UnmarshalEasyJSON ¶
func (x *NodeInfo_Attribute) UnmarshalEasyJSON(in *jlexer.Lexer)
func (*NodeInfo_Attribute) UnmarshalJSON ¶
func (x *NodeInfo_Attribute) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaler interface.
func (*NodeInfo_Attribute) UnmarshalProtobuf ¶
func (x *NodeInfo_Attribute) UnmarshalProtobuf(src []byte) (err error)
UnmarshalProtobuf implements the encoding.ProtoUnmarshaler interface.
type NodeInfo_State ¶
type NodeInfo_State int32
const ( NodeInfo_UNSPECIFIED NodeInfo_State = 0 NodeInfo_ONLINE NodeInfo_State = 1 NodeInfo_OFFLINE NodeInfo_State = 2 NodeInfo_MAINTENANCE NodeInfo_State = 3 )
func (*NodeInfo_State) FromString ¶
func (x *NodeInfo_State) FromString(s string) bool
func (NodeInfo_State) String ¶
func (x NodeInfo_State) String() string
type Operation ¶
type Operation int32
const ( Operation_OPERATION_UNSPECIFIED Operation = 0 Operation_EQ Operation = 1 Operation_NE Operation = 2 Operation_GT Operation = 3 Operation_GE Operation = 4 Operation_LT Operation = 5 Operation_LE Operation = 6 Operation_OR Operation = 7 Operation_AND Operation = 8 Operation_NOT Operation = 9 Operation_LIKE Operation = 10 )
func (*Operation) FromString ¶
type PlacementPolicy ¶
type PlacementPolicy struct { Replicas []Replica `json:"replicas"` ContainerBackupFactor uint32 `json:"containerBackupFactor"` Selectors []Selector `json:"selectors"` Filters []Filter `json:"filters"` Unique bool `json:"unique"` }
func (*PlacementPolicy) EmitProtobuf ¶
func (x *PlacementPolicy) EmitProtobuf(mm *easyproto.MessageMarshaler)
func (*PlacementPolicy) GetContainerBackupFactor ¶
func (x *PlacementPolicy) GetContainerBackupFactor() uint32
func (*PlacementPolicy) GetFilters ¶
func (x *PlacementPolicy) GetFilters() []Filter
func (*PlacementPolicy) GetReplicas ¶
func (x *PlacementPolicy) GetReplicas() []Replica
func (*PlacementPolicy) GetSelectors ¶
func (x *PlacementPolicy) GetSelectors() []Selector
func (*PlacementPolicy) GetUnique ¶
func (x *PlacementPolicy) GetUnique() bool
func (*PlacementPolicy) MarshalEasyJSON ¶
func (x *PlacementPolicy) MarshalEasyJSON(out *jwriter.Writer)
func (*PlacementPolicy) MarshalJSON ¶
func (x *PlacementPolicy) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaler interface.
func (*PlacementPolicy) MarshalProtobuf ¶
func (x *PlacementPolicy) MarshalProtobuf(dst []byte) []byte
MarshalProtobuf implements the encoding.ProtoMarshaler interface.
func (*PlacementPolicy) SetContainerBackupFactor ¶
func (x *PlacementPolicy) SetContainerBackupFactor(v uint32)
func (*PlacementPolicy) SetFilters ¶
func (x *PlacementPolicy) SetFilters(v []Filter)
func (*PlacementPolicy) SetReplicas ¶
func (x *PlacementPolicy) SetReplicas(v []Replica)
func (*PlacementPolicy) SetSelectors ¶
func (x *PlacementPolicy) SetSelectors(v []Selector)
func (*PlacementPolicy) SetUnique ¶
func (x *PlacementPolicy) SetUnique(v bool)
func (*PlacementPolicy) StableSize ¶
func (x *PlacementPolicy) StableSize() (size int)
StableSize returns the size of x in protobuf format.
Structures with the same field values have the same binary size.
func (*PlacementPolicy) UnmarshalEasyJSON ¶
func (x *PlacementPolicy) UnmarshalEasyJSON(in *jlexer.Lexer)
func (*PlacementPolicy) UnmarshalJSON ¶
func (x *PlacementPolicy) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaler interface.
func (*PlacementPolicy) UnmarshalProtobuf ¶
func (x *PlacementPolicy) UnmarshalProtobuf(src []byte) (err error)
UnmarshalProtobuf implements the encoding.ProtoUnmarshaler interface.
type Replica ¶
type Replica struct { Count uint32 `json:"count"` Selector string `json:"selector"` EcDataCount uint32 `json:"ecDataCount"` EcParityCount uint32 `json:"ecParityCount"` }
func (*Replica) EmitProtobuf ¶
func (x *Replica) EmitProtobuf(mm *easyproto.MessageMarshaler)
func (*Replica) GetEcDataCount ¶
func (*Replica) GetEcParityCount ¶
func (*Replica) GetSelector ¶
func (*Replica) MarshalEasyJSON ¶
func (*Replica) MarshalJSON ¶
MarshalJSON implements the json.Marshaler interface.
func (*Replica) MarshalProtobuf ¶
MarshalProtobuf implements the encoding.ProtoMarshaler interface.
func (*Replica) SetEcDataCount ¶
func (*Replica) SetEcParityCount ¶
func (*Replica) SetSelector ¶
func (*Replica) StableSize ¶
StableSize returns the size of x in protobuf format.
Structures with the same field values have the same binary size.
func (*Replica) UnmarshalEasyJSON ¶
func (*Replica) UnmarshalJSON ¶
UnmarshalJSON implements the json.Unmarshaler interface.
func (*Replica) UnmarshalProtobuf ¶
UnmarshalProtobuf implements the encoding.ProtoUnmarshaler interface.
type Selector ¶
type Selector struct { Name string `json:"name"` Count uint32 `json:"count"` Clause Clause `json:"clause"` Attribute string `json:"attribute"` Filter string `json:"filter"` }
func (*Selector) EmitProtobuf ¶
func (x *Selector) EmitProtobuf(mm *easyproto.MessageMarshaler)
func (*Selector) GetAttribute ¶
func (*Selector) MarshalEasyJSON ¶
func (*Selector) MarshalJSON ¶
MarshalJSON implements the json.Marshaler interface.
func (*Selector) MarshalProtobuf ¶
MarshalProtobuf implements the encoding.ProtoMarshaler interface.
func (*Selector) SetAttribute ¶
func (*Selector) StableSize ¶
StableSize returns the size of x in protobuf format.
Structures with the same field values have the same binary size.
func (*Selector) UnmarshalEasyJSON ¶
func (*Selector) UnmarshalJSON ¶
UnmarshalJSON implements the json.Unmarshaler interface.
func (*Selector) UnmarshalProtobuf ¶
UnmarshalProtobuf implements the encoding.ProtoUnmarshaler interface.
type UnimplementedNetmapServiceServer ¶
type UnimplementedNetmapServiceServer struct { }
UnimplementedNetmapServiceServer should be embedded to have forward compatible implementations.
func (UnimplementedNetmapServiceServer) LocalNodeInfo ¶
func (UnimplementedNetmapServiceServer) LocalNodeInfo(context.Context, *LocalNodeInfoRequest) (*LocalNodeInfoResponse, error)
func (UnimplementedNetmapServiceServer) NetmapSnapshot ¶
func (UnimplementedNetmapServiceServer) NetmapSnapshot(context.Context, *NetmapSnapshotRequest) (*NetmapSnapshotResponse, error)
func (UnimplementedNetmapServiceServer) NetworkInfo ¶
func (UnimplementedNetmapServiceServer) NetworkInfo(context.Context, *NetworkInfoRequest) (*NetworkInfoResponse, error)
type UnsafeNetmapServiceServer ¶
type UnsafeNetmapServiceServer interface {
// contains filtered or unexported methods
}
UnsafeNetmapServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to NetmapServiceServer will result in compilation errors.