powergate: github.com/textileio/powergate/buildinfo/rpc Index | Files

package rpc

import "github.com/textileio/powergate/buildinfo/rpc"

Index

Package Files

rpc.go rpc.pb.go

Variables

var File_buildinfo_rpc_rpc_proto protoreflect.FileDescriptor

func RegisterRPCServiceServer Uses

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

type BuildInfoRequest Uses

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

func (*BuildInfoRequest) Descriptor Uses

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

Deprecated: Use BuildInfoRequest.ProtoReflect.Descriptor instead.

func (*BuildInfoRequest) ProtoMessage Uses

func (*BuildInfoRequest) ProtoMessage()

func (*BuildInfoRequest) ProtoReflect Uses

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

func (*BuildInfoRequest) Reset Uses

func (x *BuildInfoRequest) Reset()

func (*BuildInfoRequest) String Uses

func (x *BuildInfoRequest) String() string

type BuildInfoResponse Uses

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 Uses

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

Deprecated: Use BuildInfoResponse.ProtoReflect.Descriptor instead.

func (*BuildInfoResponse) GetBuildDate Uses

func (x *BuildInfoResponse) GetBuildDate() string

func (*BuildInfoResponse) GetGitBranch Uses

func (x *BuildInfoResponse) GetGitBranch() string

func (*BuildInfoResponse) GetGitCommit Uses

func (x *BuildInfoResponse) GetGitCommit() string

func (*BuildInfoResponse) GetGitState Uses

func (x *BuildInfoResponse) GetGitState() string

func (*BuildInfoResponse) GetGitSummary Uses

func (x *BuildInfoResponse) GetGitSummary() string

func (*BuildInfoResponse) GetVersion Uses

func (x *BuildInfoResponse) GetVersion() string

func (*BuildInfoResponse) ProtoMessage Uses

func (*BuildInfoResponse) ProtoMessage()

func (*BuildInfoResponse) ProtoReflect Uses

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

func (*BuildInfoResponse) Reset Uses

func (x *BuildInfoResponse) Reset()

func (*BuildInfoResponse) String Uses

func (x *BuildInfoResponse) String() string

type RPC Uses

type RPC struct {
}

RPC implements the rpc service.

func New Uses

func New() *RPC

New creates a new rpc service.

func (*RPC) BuildInfo Uses

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

BuildInfo returns information about the powergate build.

type RPCServiceClient Uses

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 Uses

func NewRPCServiceClient(cc grpc.ClientConnInterface) RPCServiceClient

type RPCServiceServer Uses

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

RPCServiceServer is the server API for RPCService service.

type UnimplementedRPCServiceServer Uses

type UnimplementedRPCServiceServer struct {
}

UnimplementedRPCServiceServer can be embedded to have forward compatible implementations.

func (*UnimplementedRPCServiceServer) BuildInfo Uses

func (*UnimplementedRPCServiceServer) BuildInfo(context.Context, *BuildInfoRequest) (*BuildInfoResponse, error)

Package rpc imports 10 packages (graph) and is imported by 5 packages. Updated 2020-08-05. Refresh now. Tools for package owners.