rpc

package
v0.9.4 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2020 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_buildinfo_rpc_rpc_proto protoreflect.FileDescriptor

Functions

func RegisterRPCServiceServer

func RegisterRPCServiceServer(s *grpc.Server, srv RPCServiceServer)

Types

type BuildInfoRequest

type BuildInfoRequest struct {
	// contains filtered or unexported fields
}

func (*BuildInfoRequest) Descriptor deprecated

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

Deprecated: Use BuildInfoRequest.ProtoReflect.Descriptor instead.

func (*BuildInfoRequest) ProtoMessage

func (*BuildInfoRequest) ProtoMessage()

func (*BuildInfoRequest) ProtoReflect

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

func (*BuildInfoRequest) Reset

func (x *BuildInfoRequest) Reset()

func (*BuildInfoRequest) String

func (x *BuildInfoRequest) String() string

type BuildInfoResponse

type BuildInfoResponse struct {
	GitCommit  string `protobuf:"bytes,1,opt,name=git_commit,json=gitCommit,proto3" json:"git_commit,omitempty"`
	GitBranch  string `protobuf:"bytes,2,opt,name=git_branch,json=gitBranch,proto3" json:"git_branch,omitempty"`
	GitState   string `protobuf:"bytes,3,opt,name=git_state,json=gitState,proto3" json:"git_state,omitempty"`
	GitSummary string `protobuf:"bytes,4,opt,name=git_summary,json=gitSummary,proto3" json:"git_summary,omitempty"`
	BuildDate  string `protobuf:"bytes,5,opt,name=build_date,json=buildDate,proto3" json:"build_date,omitempty"`
	Version    string `protobuf:"bytes,6,opt,name=version,proto3" json:"version,omitempty"`
	// contains filtered or unexported fields
}

func (*BuildInfoResponse) Descriptor deprecated

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

Deprecated: Use BuildInfoResponse.ProtoReflect.Descriptor instead.

func (*BuildInfoResponse) GetBuildDate

func (x *BuildInfoResponse) GetBuildDate() string

func (*BuildInfoResponse) GetGitBranch

func (x *BuildInfoResponse) GetGitBranch() string

func (*BuildInfoResponse) GetGitCommit

func (x *BuildInfoResponse) GetGitCommit() string

func (*BuildInfoResponse) GetGitState

func (x *BuildInfoResponse) GetGitState() string

func (*BuildInfoResponse) GetGitSummary

func (x *BuildInfoResponse) GetGitSummary() string

func (*BuildInfoResponse) GetVersion

func (x *BuildInfoResponse) GetVersion() string

func (*BuildInfoResponse) ProtoMessage

func (*BuildInfoResponse) ProtoMessage()

func (*BuildInfoResponse) ProtoReflect

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

func (*BuildInfoResponse) Reset

func (x *BuildInfoResponse) Reset()

func (*BuildInfoResponse) String

func (x *BuildInfoResponse) String() string

type RPC

type RPC struct {
}

RPC implements the rpc service.

func New

func New() *RPC

New creates a new rpc service.

func (*RPC) BuildInfo

func (i *RPC) BuildInfo(ctx context.Context, req *BuildInfoRequest) (*BuildInfoResponse, error)

BuildInfo returns information about the powergate build.

type RPCServiceClient

type RPCServiceClient interface {
	BuildInfo(ctx context.Context, in *BuildInfoRequest, opts ...grpc.CallOption) (*BuildInfoResponse, error)
}

RPCServiceClient is the client API for RPCService service.

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

func NewRPCServiceClient

func NewRPCServiceClient(cc grpc.ClientConnInterface) RPCServiceClient

type RPCServiceServer

type RPCServiceServer interface {
	BuildInfo(context.Context, *BuildInfoRequest) (*BuildInfoResponse, error)
}

RPCServiceServer is the server API for RPCService service.

type UnimplementedRPCServiceServer

type UnimplementedRPCServiceServer struct {
}

UnimplementedRPCServiceServer can be embedded to have forward compatible implementations.

func (*UnimplementedRPCServiceServer) BuildInfo

Jump to

Keyboard shortcuts

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