pb

package
v0.0.0-...-edb10b3 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2020 License: Apache-2.0 Imports: 9 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_greeting_proto protoreflect.FileDescriptor
View Source
var File_pubkey_proto protoreflect.FileDescriptor

Functions

func RegisterGreetingServiceServer

func RegisterGreetingServiceServer(s *grpc.Server, srv GreetingServiceServer)

Types

type GreetingRequest

type GreetingRequest struct {
	Version int32   `protobuf:"varint,1,opt,name=version,proto3" json:"version,omitempty"`
	Port    int32   `protobuf:"varint,2,opt,name=port,proto3" json:"port,omitempty"`
	Pubkey  *PubKey `protobuf:"bytes,3,opt,name=pubkey,proto3" json:"pubkey,omitempty"`
	// contains filtered or unexported fields
}

func (*GreetingRequest) Descriptor deprecated

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

Deprecated: Use GreetingRequest.ProtoReflect.Descriptor instead.

func (*GreetingRequest) GetPort

func (x *GreetingRequest) GetPort() int32

func (*GreetingRequest) GetPubkey

func (x *GreetingRequest) GetPubkey() *PubKey

func (*GreetingRequest) GetVersion

func (x *GreetingRequest) GetVersion() int32

func (*GreetingRequest) ProtoMessage

func (*GreetingRequest) ProtoMessage()

func (*GreetingRequest) ProtoReflect

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

func (*GreetingRequest) Reset

func (x *GreetingRequest) Reset()

func (*GreetingRequest) String

func (x *GreetingRequest) String() string

type GreetingResponse

type GreetingResponse struct {
	Ipaddresses []byte `protobuf:"bytes,1,opt,name=ipaddresses,proto3" json:"ipaddresses,omitempty"`
	Port        int32  `protobuf:"varint,2,opt,name=port,proto3" json:"port,omitempty"`
	Visible     bool   `protobuf:"varint,3,opt,name=visible,proto3" json:"visible,omitempty"`
	// contains filtered or unexported fields
}

func (*GreetingResponse) Descriptor deprecated

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

Deprecated: Use GreetingResponse.ProtoReflect.Descriptor instead.

func (*GreetingResponse) GetIpaddresses

func (x *GreetingResponse) GetIpaddresses() []byte

func (*GreetingResponse) GetPort

func (x *GreetingResponse) GetPort() int32

func (*GreetingResponse) GetVisible

func (x *GreetingResponse) GetVisible() bool

func (*GreetingResponse) ProtoMessage

func (*GreetingResponse) ProtoMessage()

func (*GreetingResponse) ProtoReflect

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

func (*GreetingResponse) Reset

func (x *GreetingResponse) Reset()

func (*GreetingResponse) String

func (x *GreetingResponse) String() string

type GreetingServiceClient

type GreetingServiceClient interface {
	Greeting(ctx context.Context, in *GreetingRequest, opts ...grpc.CallOption) (*GreetingResponse, error)
}

GreetingServiceClient is the client API for GreetingService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

type GreetingServiceServer

type GreetingServiceServer interface {
	Greeting(context.Context, *GreetingRequest) (*GreetingResponse, error)
}

GreetingServiceServer is the server API for GreetingService service.

type Node

type Node struct {
	Id           []byte   `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Pubkey       *PubKey  `protobuf:"bytes,2,opt,name=pubkey,proto3" json:"pubkey,omitempty"`
	Ipaddresses  [][]byte `protobuf:"bytes,3,rep,name=ipaddresses,proto3" json:"ipaddresses,omitempty"`
	Port         int32    `protobuf:"varint,4,opt,name=port,proto3" json:"port,omitempty"`
	Active       bool     `protobuf:"varint,5,opt,name=active,proto3" json:"active,omitempty"`
	Lastactivity int64    `protobuf:"varint,6,opt,name=lastactivity,proto3" json:"lastactivity,omitempty"`
	Lastupdate   int64    `protobuf:"varint,7,opt,name=lastupdate,proto3" json:"lastupdate,omitempty"`
	// contains filtered or unexported fields
}

func (*Node) Descriptor deprecated

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

Deprecated: Use Node.ProtoReflect.Descriptor instead.

func (*Node) GetActive

func (x *Node) GetActive() bool

func (*Node) GetId

func (x *Node) GetId() []byte

func (*Node) GetIpaddresses

func (x *Node) GetIpaddresses() [][]byte

func (*Node) GetLastactivity

func (x *Node) GetLastactivity() int64

func (*Node) GetLastupdate

func (x *Node) GetLastupdate() int64

func (*Node) GetPort

func (x *Node) GetPort() int32

func (*Node) GetPubkey

func (x *Node) GetPubkey() *PubKey

func (*Node) ProtoMessage

func (*Node) ProtoMessage()

func (*Node) ProtoReflect

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

func (*Node) Reset

func (x *Node) Reset()

func (*Node) String

func (x *Node) String() string

type PubKey

type PubKey struct {
	X []byte `protobuf:"bytes,1,opt,name=X,proto3" json:"X,omitempty"`
	Y []byte `protobuf:"bytes,2,opt,name=Y,proto3" json:"Y,omitempty"`
	// contains filtered or unexported fields
}

func (*PubKey) Descriptor deprecated

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

Deprecated: Use PubKey.ProtoReflect.Descriptor instead.

func (*PubKey) GetX

func (x *PubKey) GetX() []byte

func (*PubKey) GetY

func (x *PubKey) GetY() []byte

func (*PubKey) ProtoMessage

func (*PubKey) ProtoMessage()

func (*PubKey) ProtoReflect

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

func (*PubKey) Reset

func (x *PubKey) Reset()

func (*PubKey) String

func (x *PubKey) String() string

type UnimplementedGreetingServiceServer

type UnimplementedGreetingServiceServer struct {
}

UnimplementedGreetingServiceServer can be embedded to have forward compatible implementations.

func (*UnimplementedGreetingServiceServer) Greeting

Jump to

Keyboard shortcuts

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