stakepoolrpc

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2017 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package stakepoolrpc is a generated protocol buffer package.

It is generated from these files:

api.proto

It has these top-level messages:

PingRequest
PingResponse
UpdateVotingPrefsRequest
UpdateVotingPrefsResponse
VersionRequest
VersionResponse

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterStakepooldServiceServer

func RegisterStakepooldServiceServer(s *grpc.Server, srv StakepooldServiceServer)

func RegisterVersionServiceServer

func RegisterVersionServiceServer(s *grpc.Server, srv VersionServiceServer)

Types

type PingRequest

type PingRequest struct {
}

func (*PingRequest) Descriptor

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

func (*PingRequest) ProtoMessage

func (*PingRequest) ProtoMessage()

func (*PingRequest) Reset

func (m *PingRequest) Reset()

func (*PingRequest) String

func (m *PingRequest) String() string

type PingResponse

type PingResponse struct {
}

func (*PingResponse) Descriptor

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

func (*PingResponse) ProtoMessage

func (*PingResponse) ProtoMessage()

func (*PingResponse) Reset

func (m *PingResponse) Reset()

func (*PingResponse) String

func (m *PingResponse) String() string

type StakepooldServiceClient

type StakepooldServiceClient interface {
	// Queries
	Ping(ctx context.Context, in *PingRequest, opts ...grpc.CallOption) (*PingResponse, error)
	// Control
	UpdateVotingPrefs(ctx context.Context, in *UpdateVotingPrefsRequest, opts ...grpc.CallOption) (*UpdateVotingPrefsResponse, error)
}

func NewStakepooldServiceClient

func NewStakepooldServiceClient(cc *grpc.ClientConn) StakepooldServiceClient

type StakepooldServiceServer

type StakepooldServiceServer interface {
	// Queries
	Ping(context.Context, *PingRequest) (*PingResponse, error)
	// Control
	UpdateVotingPrefs(context.Context, *UpdateVotingPrefsRequest) (*UpdateVotingPrefsResponse, error)
}

type UpdateVotingPrefsRequest

type UpdateVotingPrefsRequest struct {
	Userid int64 `protobuf:"varint,1,opt,name=Userid" json:"Userid,omitempty"`
}

func (*UpdateVotingPrefsRequest) Descriptor

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

func (*UpdateVotingPrefsRequest) GetUserid

func (m *UpdateVotingPrefsRequest) GetUserid() int64

func (*UpdateVotingPrefsRequest) ProtoMessage

func (*UpdateVotingPrefsRequest) ProtoMessage()

func (*UpdateVotingPrefsRequest) Reset

func (m *UpdateVotingPrefsRequest) Reset()

func (*UpdateVotingPrefsRequest) String

func (m *UpdateVotingPrefsRequest) String() string

type UpdateVotingPrefsResponse

type UpdateVotingPrefsResponse struct {
}

func (*UpdateVotingPrefsResponse) Descriptor

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

func (*UpdateVotingPrefsResponse) ProtoMessage

func (*UpdateVotingPrefsResponse) ProtoMessage()

func (*UpdateVotingPrefsResponse) Reset

func (m *UpdateVotingPrefsResponse) Reset()

func (*UpdateVotingPrefsResponse) String

func (m *UpdateVotingPrefsResponse) String() string

type VersionRequest

type VersionRequest struct {
}

func (*VersionRequest) Descriptor

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

func (*VersionRequest) ProtoMessage

func (*VersionRequest) ProtoMessage()

func (*VersionRequest) Reset

func (m *VersionRequest) Reset()

func (*VersionRequest) String

func (m *VersionRequest) String() string

type VersionResponse

type VersionResponse struct {
	VersionString string `protobuf:"bytes,1,opt,name=version_string,json=versionString" json:"version_string,omitempty"`
	Major         uint32 `protobuf:"varint,2,opt,name=major" json:"major,omitempty"`
	Minor         uint32 `protobuf:"varint,3,opt,name=minor" json:"minor,omitempty"`
	Patch         uint32 `protobuf:"varint,4,opt,name=patch" json:"patch,omitempty"`
	Prerelease    string `protobuf:"bytes,5,opt,name=prerelease" json:"prerelease,omitempty"`
	BuildMetadata string `protobuf:"bytes,6,opt,name=build_metadata,json=buildMetadata" json:"build_metadata,omitempty"`
}

func (*VersionResponse) Descriptor

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

func (*VersionResponse) GetBuildMetadata

func (m *VersionResponse) GetBuildMetadata() string

func (*VersionResponse) GetMajor

func (m *VersionResponse) GetMajor() uint32

func (*VersionResponse) GetMinor

func (m *VersionResponse) GetMinor() uint32

func (*VersionResponse) GetPatch

func (m *VersionResponse) GetPatch() uint32

func (*VersionResponse) GetPrerelease

func (m *VersionResponse) GetPrerelease() string

func (*VersionResponse) GetVersionString

func (m *VersionResponse) GetVersionString() string

func (*VersionResponse) ProtoMessage

func (*VersionResponse) ProtoMessage()

func (*VersionResponse) Reset

func (m *VersionResponse) Reset()

func (*VersionResponse) String

func (m *VersionResponse) String() string

type VersionServiceClient

type VersionServiceClient interface {
	Version(ctx context.Context, in *VersionRequest, opts ...grpc.CallOption) (*VersionResponse, error)
}

func NewVersionServiceClient

func NewVersionServiceClient(cc *grpc.ClientConn) VersionServiceClient

type VersionServiceServer

type VersionServiceServer interface {
	Version(context.Context, *VersionRequest) (*VersionResponse, error)
}

Jump to

Keyboard shortcuts

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