netmap

package
v0.0.0-...-0352b5b Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2024 License: Apache-2.0 Imports: 15 Imported by: 2

Documentation

Index

Constants

View Source
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

View Source
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,
	}
)
View Source
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,
	}
)
View Source
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,
	}
)
View Source
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 Clause

type Clause int32
const (
	Clause_CLAUSE_UNSPECIFIED Clause = 0
	Clause_SAME               Clause = 1
	Clause_DISTINCT           Clause = 2
)

func (*Clause) FromString

func (x *Clause) FromString(s string) bool

func (Clause) String

func (x Clause) String() string

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 (x *Filter) GetFilters() []Filter

func (*Filter) GetKey

func (x *Filter) GetKey() string

func (*Filter) GetName

func (x *Filter) GetName() string

func (*Filter) GetOp

func (x *Filter) GetOp() Operation

func (*Filter) GetValue

func (x *Filter) GetValue() string

func (*Filter) MarshalEasyJSON

func (x *Filter) MarshalEasyJSON(out *jwriter.Writer)

func (*Filter) MarshalJSON

func (x *Filter) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaler interface.

func (*Filter) MarshalProtobuf

func (x *Filter) MarshalProtobuf(dst []byte) []byte

MarshalProtobuf implements the encoding.ProtoMarshaler interface.

func (*Filter) SetFilters

func (x *Filter) SetFilters(v []Filter)

func (*Filter) SetKey

func (x *Filter) SetKey(v string)

func (*Filter) SetName

func (x *Filter) SetName(v string)

func (*Filter) SetOp

func (x *Filter) SetOp(v Operation)

func (*Filter) SetValue

func (x *Filter) SetValue(v string)

func (*Filter) StableSize

func (x *Filter) StableSize() (size int)

StableSize returns the size of x in protobuf format.

Structures with the same field values have the same binary size.

func (*Filter) UnmarshalEasyJSON

func (x *Filter) UnmarshalEasyJSON(in *jlexer.Lexer)

func (*Filter) UnmarshalJSON

func (x *Filter) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaler interface.

func (*Filter) UnmarshalProtobuf

func (x *Filter) UnmarshalProtobuf(src []byte) (err error)

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 (*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 (*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 (*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 (*LocalNodeInfoResponse) GetMetaHeader

func (x *LocalNodeInfoResponse) GetMetaHeader() *grpc.ResponseMetaHeader

func (*LocalNodeInfoResponse) GetVerifyHeader

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 (*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 (*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

type Netmap struct {
	Epoch uint64     `json:"epoch"`
	Nodes []NodeInfo `json:"nodes"`
}

func (*Netmap) EmitProtobuf

func (x *Netmap) EmitProtobuf(mm *easyproto.MessageMarshaler)

func (*Netmap) GetEpoch

func (x *Netmap) GetEpoch() uint64

func (*Netmap) GetNodes

func (x *Netmap) GetNodes() []NodeInfo

func (*Netmap) MarshalEasyJSON

func (x *Netmap) MarshalEasyJSON(out *jwriter.Writer)

func (*Netmap) MarshalJSON

func (x *Netmap) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaler interface.

func (*Netmap) MarshalProtobuf

func (x *Netmap) MarshalProtobuf(dst []byte) []byte

MarshalProtobuf implements the encoding.ProtoMarshaler interface.

func (*Netmap) SetEpoch

func (x *Netmap) SetEpoch(v uint64)

func (*Netmap) SetNodes

func (x *Netmap) SetNodes(v []NodeInfo)

func (*Netmap) StableSize

func (x *Netmap) StableSize() (size int)

StableSize returns the size of x in protobuf format.

Structures with the same field values have the same binary size.

func (*Netmap) UnmarshalEasyJSON

func (x *Netmap) UnmarshalEasyJSON(in *jlexer.Lexer)

func (*Netmap) UnmarshalJSON

func (x *Netmap) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaler interface.

func (*Netmap) UnmarshalProtobuf

func (x *Netmap) UnmarshalProtobuf(src []byte) (err error)

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.

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 (*NetmapSnapshotRequest) GetMetaHeader

func (x *NetmapSnapshotRequest) GetMetaHeader() *grpc.RequestMetaHeader

func (*NetmapSnapshotRequest) GetVerifyHeader

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 (*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 (*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 (*NetmapSnapshotResponse) GetMetaHeader

func (x *NetmapSnapshotResponse) GetMetaHeader() *grpc.ResponseMetaHeader

func (*NetmapSnapshotResponse) GetVerifyHeader

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 (*NetmapSnapshotResponse) SetMetaHeader

func (x *NetmapSnapshotResponse) SetMetaHeader(v *grpc.ResponseMetaHeader)

func (*NetmapSnapshotResponse) SetVerifyHeader

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 (*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

type NetworkConfig_Parameter struct {
	Key   []byte `json:"key"`
	Value []byte `json:"value"`
}

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 (*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 (*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 (*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 (*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 (*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 (x *NodeInfo) GetAddresses() []string

func (*NodeInfo) GetAttributes

func (x *NodeInfo) GetAttributes() []NodeInfo_Attribute

func (*NodeInfo) GetPublicKey

func (x *NodeInfo) GetPublicKey() []byte

func (*NodeInfo) GetState

func (x *NodeInfo) GetState() NodeInfo_State

func (*NodeInfo) MarshalEasyJSON

func (x *NodeInfo) MarshalEasyJSON(out *jwriter.Writer)

func (*NodeInfo) MarshalJSON

func (x *NodeInfo) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaler interface.

func (*NodeInfo) MarshalProtobuf

func (x *NodeInfo) MarshalProtobuf(dst []byte) []byte

MarshalProtobuf implements the encoding.ProtoMarshaler interface.

func (*NodeInfo) SetAddresses

func (x *NodeInfo) SetAddresses(v []string)

func (*NodeInfo) SetAttributes

func (x *NodeInfo) SetAttributes(v []NodeInfo_Attribute)

func (*NodeInfo) SetPublicKey

func (x *NodeInfo) SetPublicKey(v []byte)

func (*NodeInfo) SetState

func (x *NodeInfo) SetState(v NodeInfo_State)

func (*NodeInfo) StableSize

func (x *NodeInfo) 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) UnmarshalEasyJSON

func (x *NodeInfo) UnmarshalEasyJSON(in *jlexer.Lexer)

func (*NodeInfo) UnmarshalJSON

func (x *NodeInfo) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaler interface.

func (*NodeInfo) UnmarshalProtobuf

func (x *NodeInfo) UnmarshalProtobuf(src []byte) (err error)

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

func (x *Operation) FromString(s string) bool

func (Operation) String

func (x Operation) String() string

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) GetCount

func (x *Replica) GetCount() uint32

func (*Replica) GetEcDataCount

func (x *Replica) GetEcDataCount() uint32

func (*Replica) GetEcParityCount

func (x *Replica) GetEcParityCount() uint32

func (*Replica) GetSelector

func (x *Replica) GetSelector() string

func (*Replica) MarshalEasyJSON

func (x *Replica) MarshalEasyJSON(out *jwriter.Writer)

func (*Replica) MarshalJSON

func (x *Replica) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaler interface.

func (*Replica) MarshalProtobuf

func (x *Replica) MarshalProtobuf(dst []byte) []byte

MarshalProtobuf implements the encoding.ProtoMarshaler interface.

func (*Replica) SetCount

func (x *Replica) SetCount(v uint32)

func (*Replica) SetEcDataCount

func (x *Replica) SetEcDataCount(v uint32)

func (*Replica) SetEcParityCount

func (x *Replica) SetEcParityCount(v uint32)

func (*Replica) SetSelector

func (x *Replica) SetSelector(v string)

func (*Replica) StableSize

func (x *Replica) StableSize() (size int)

StableSize returns the size of x in protobuf format.

Structures with the same field values have the same binary size.

func (*Replica) UnmarshalEasyJSON

func (x *Replica) UnmarshalEasyJSON(in *jlexer.Lexer)

func (*Replica) UnmarshalJSON

func (x *Replica) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaler interface.

func (*Replica) UnmarshalProtobuf

func (x *Replica) UnmarshalProtobuf(src []byte) (err error)

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 (x *Selector) GetAttribute() string

func (*Selector) GetClause

func (x *Selector) GetClause() Clause

func (*Selector) GetCount

func (x *Selector) GetCount() uint32

func (*Selector) GetFilter

func (x *Selector) GetFilter() string

func (*Selector) GetName

func (x *Selector) GetName() string

func (*Selector) MarshalEasyJSON

func (x *Selector) MarshalEasyJSON(out *jwriter.Writer)

func (*Selector) MarshalJSON

func (x *Selector) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaler interface.

func (*Selector) MarshalProtobuf

func (x *Selector) MarshalProtobuf(dst []byte) []byte

MarshalProtobuf implements the encoding.ProtoMarshaler interface.

func (*Selector) SetAttribute

func (x *Selector) SetAttribute(v string)

func (*Selector) SetClause

func (x *Selector) SetClause(v Clause)

func (*Selector) SetCount

func (x *Selector) SetCount(v uint32)

func (*Selector) SetFilter

func (x *Selector) SetFilter(v string)

func (*Selector) SetName

func (x *Selector) SetName(v string)

func (*Selector) StableSize

func (x *Selector) StableSize() (size int)

StableSize returns the size of x in protobuf format.

Structures with the same field values have the same binary size.

func (*Selector) UnmarshalEasyJSON

func (x *Selector) UnmarshalEasyJSON(in *jlexer.Lexer)

func (*Selector) UnmarshalJSON

func (x *Selector) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaler interface.

func (*Selector) UnmarshalProtobuf

func (x *Selector) UnmarshalProtobuf(src []byte) (err error)

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) NetmapSnapshot

func (UnimplementedNetmapServiceServer) NetworkInfo

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.

Jump to

Keyboard shortcuts

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