proto

package
v0.0.0-...-d9e2275 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_ibft_operator_proto protoreflect.FileDescriptor
View Source
var IbftOperator_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "v1.IbftOperator",
	HandlerType: (*IbftOperatorServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "GetSnapshot",
			Handler:    _IbftOperator_GetSnapshot_Handler,
		},
		{
			MethodName: "Propose",
			Handler:    _IbftOperator_Propose_Handler,
		},
		{
			MethodName: "Candidates",
			Handler:    _IbftOperator_Candidates_Handler,
		},
		{
			MethodName: "Status",
			Handler:    _IbftOperator_Status_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "ibft_operator.proto",
}

IbftOperator_ServiceDesc is the grpc.ServiceDesc for IbftOperator service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterIbftOperatorServer

func RegisterIbftOperatorServer(s grpc.ServiceRegistrar, srv IbftOperatorServer)

Types

type Candidate

type Candidate struct {
	Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
	Auth    bool   `protobuf:"varint,2,opt,name=auth,proto3" json:"auth,omitempty"`
	// contains filtered or unexported fields
}

func (*Candidate) Descriptor deprecated

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

Deprecated: Use Candidate.ProtoReflect.Descriptor instead.

func (*Candidate) GetAddress

func (x *Candidate) GetAddress() string

func (*Candidate) GetAuth

func (x *Candidate) GetAuth() bool

func (*Candidate) ProtoMessage

func (*Candidate) ProtoMessage()

func (*Candidate) ProtoReflect

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

func (*Candidate) Reset

func (x *Candidate) Reset()

func (*Candidate) String

func (x *Candidate) String() string

type CandidatesResp

type CandidatesResp struct {
	Candidates []*Candidate `protobuf:"bytes,1,rep,name=candidates,proto3" json:"candidates,omitempty"`
	// contains filtered or unexported fields
}

func (*CandidatesResp) Descriptor deprecated

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

Deprecated: Use CandidatesResp.ProtoReflect.Descriptor instead.

func (*CandidatesResp) GetCandidates

func (x *CandidatesResp) GetCandidates() []*Candidate

func (*CandidatesResp) ProtoMessage

func (*CandidatesResp) ProtoMessage()

func (*CandidatesResp) ProtoReflect

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

func (*CandidatesResp) Reset

func (x *CandidatesResp) Reset()

func (*CandidatesResp) String

func (x *CandidatesResp) String() string

type IbftOperatorClient

type IbftOperatorClient interface {
	GetSnapshot(ctx context.Context, in *SnapshotReq, opts ...grpc.CallOption) (*Snapshot, error)
	Propose(ctx context.Context, in *Candidate, opts ...grpc.CallOption) (*emptypb.Empty, error)
	Candidates(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*CandidatesResp, error)
	Status(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*IbftStatusResp, error)
}

IbftOperatorClient is the client API for IbftOperator 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 IbftOperatorServer

type IbftOperatorServer interface {
	GetSnapshot(context.Context, *SnapshotReq) (*Snapshot, error)
	Propose(context.Context, *Candidate) (*emptypb.Empty, error)
	Candidates(context.Context, *emptypb.Empty) (*CandidatesResp, error)
	Status(context.Context, *emptypb.Empty) (*IbftStatusResp, error)
	// contains filtered or unexported methods
}

IbftOperatorServer is the server API for IbftOperator service. All implementations must embed UnimplementedIbftOperatorServer for forward compatibility

type IbftStatusResp

type IbftStatusResp struct {
	Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
	// contains filtered or unexported fields
}

func (*IbftStatusResp) Descriptor deprecated

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

Deprecated: Use IbftStatusResp.ProtoReflect.Descriptor instead.

func (*IbftStatusResp) GetKey

func (x *IbftStatusResp) GetKey() string

func (*IbftStatusResp) ProtoMessage

func (*IbftStatusResp) ProtoMessage()

func (*IbftStatusResp) ProtoReflect

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

func (*IbftStatusResp) Reset

func (x *IbftStatusResp) Reset()

func (*IbftStatusResp) String

func (x *IbftStatusResp) String() string

type ProposeReq

type ProposeReq struct {
	Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
	Auth    bool   `protobuf:"varint,2,opt,name=auth,proto3" json:"auth,omitempty"`
	// contains filtered or unexported fields
}

func (*ProposeReq) Descriptor deprecated

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

Deprecated: Use ProposeReq.ProtoReflect.Descriptor instead.

func (*ProposeReq) GetAddress

func (x *ProposeReq) GetAddress() string

func (*ProposeReq) GetAuth

func (x *ProposeReq) GetAuth() bool

func (*ProposeReq) ProtoMessage

func (*ProposeReq) ProtoMessage()

func (*ProposeReq) ProtoReflect

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

func (*ProposeReq) Reset

func (x *ProposeReq) Reset()

func (*ProposeReq) String

func (x *ProposeReq) String() string

type Snapshot

type Snapshot struct {
	Validators []*Snapshot_Validator `protobuf:"bytes,1,rep,name=validators,proto3" json:"validators,omitempty"`
	Number     uint64                `protobuf:"varint,2,opt,name=number,proto3" json:"number,omitempty"`
	Hash       string                `protobuf:"bytes,3,opt,name=hash,proto3" json:"hash,omitempty"`
	Votes      []*Snapshot_Vote      `protobuf:"bytes,4,rep,name=votes,proto3" json:"votes,omitempty"`
	// contains filtered or unexported fields
}

func (*Snapshot) Descriptor deprecated

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

Deprecated: Use Snapshot.ProtoReflect.Descriptor instead.

func (*Snapshot) GetHash

func (x *Snapshot) GetHash() string

func (*Snapshot) GetNumber

func (x *Snapshot) GetNumber() uint64

func (*Snapshot) GetValidators

func (x *Snapshot) GetValidators() []*Snapshot_Validator

func (*Snapshot) GetVotes

func (x *Snapshot) GetVotes() []*Snapshot_Vote

func (*Snapshot) ProtoMessage

func (*Snapshot) ProtoMessage()

func (*Snapshot) ProtoReflect

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

func (*Snapshot) Reset

func (x *Snapshot) Reset()

func (*Snapshot) String

func (x *Snapshot) String() string

type SnapshotReq

type SnapshotReq struct {
	Latest bool   `protobuf:"varint,1,opt,name=latest,proto3" json:"latest,omitempty"`
	Number uint64 `protobuf:"varint,2,opt,name=number,proto3" json:"number,omitempty"`
	// contains filtered or unexported fields
}

func (*SnapshotReq) Descriptor deprecated

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

Deprecated: Use SnapshotReq.ProtoReflect.Descriptor instead.

func (*SnapshotReq) GetLatest

func (x *SnapshotReq) GetLatest() bool

func (*SnapshotReq) GetNumber

func (x *SnapshotReq) GetNumber() uint64

func (*SnapshotReq) ProtoMessage

func (*SnapshotReq) ProtoMessage()

func (*SnapshotReq) ProtoReflect

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

func (*SnapshotReq) Reset

func (x *SnapshotReq) Reset()

func (*SnapshotReq) String

func (x *SnapshotReq) String() string

type Snapshot_Validator

type Snapshot_Validator struct {
	Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
	// contains filtered or unexported fields
}

func (*Snapshot_Validator) Descriptor deprecated

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

Deprecated: Use Snapshot_Validator.ProtoReflect.Descriptor instead.

func (*Snapshot_Validator) GetAddress

func (x *Snapshot_Validator) GetAddress() string

func (*Snapshot_Validator) ProtoMessage

func (*Snapshot_Validator) ProtoMessage()

func (*Snapshot_Validator) ProtoReflect

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

func (*Snapshot_Validator) Reset

func (x *Snapshot_Validator) Reset()

func (*Snapshot_Validator) String

func (x *Snapshot_Validator) String() string

type Snapshot_Vote

type Snapshot_Vote struct {
	Validator string `protobuf:"bytes,1,opt,name=validator,proto3" json:"validator,omitempty"`
	Proposed  string `protobuf:"bytes,2,opt,name=proposed,proto3" json:"proposed,omitempty"`
	Auth      bool   `protobuf:"varint,3,opt,name=auth,proto3" json:"auth,omitempty"`
	// contains filtered or unexported fields
}

func (*Snapshot_Vote) Descriptor deprecated

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

Deprecated: Use Snapshot_Vote.ProtoReflect.Descriptor instead.

func (*Snapshot_Vote) GetAuth

func (x *Snapshot_Vote) GetAuth() bool

func (*Snapshot_Vote) GetProposed

func (x *Snapshot_Vote) GetProposed() string

func (*Snapshot_Vote) GetValidator

func (x *Snapshot_Vote) GetValidator() string

func (*Snapshot_Vote) ProtoMessage

func (*Snapshot_Vote) ProtoMessage()

func (*Snapshot_Vote) ProtoReflect

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

func (*Snapshot_Vote) Reset

func (x *Snapshot_Vote) Reset()

func (*Snapshot_Vote) String

func (x *Snapshot_Vote) String() string

type UnimplementedIbftOperatorServer

type UnimplementedIbftOperatorServer struct {
}

UnimplementedIbftOperatorServer must be embedded to have forward compatible implementations.

func (UnimplementedIbftOperatorServer) Candidates

func (UnimplementedIbftOperatorServer) GetSnapshot

func (UnimplementedIbftOperatorServer) Propose

func (UnimplementedIbftOperatorServer) Status

type UnsafeIbftOperatorServer

type UnsafeIbftOperatorServer interface {
	// contains filtered or unexported methods
}

UnsafeIbftOperatorServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to IbftOperatorServer will result in compilation errors.

Jump to

Keyboard shortcuts

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