cli

package
v3.9.0 Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CliService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "strmprivacy.api.cli.v1.CliService",
	HandlerType: (*CliServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "GetRelease",
			Handler:    _CliService_GetRelease_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "strmprivacy/api/cli/v1/cli.proto",
}

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

View Source
var File_strmprivacy_api_cli_v1_cli_proto protoreflect.FileDescriptor

Functions

func RegisterCliServiceServer

func RegisterCliServiceServer(s grpc.ServiceRegistrar, srv CliServiceServer)

Types

type CliRelease

type CliRelease struct {

	// The version string for this CLI release.
	Version     string                 `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"`
	ReleaseTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=release_time,json=releaseTime,proto3" json:"release_time,omitempty"`
	// The absolute URL to the release page in GitHub.
	SourceUri string `protobuf:"bytes,3,opt,name=source_uri,json=sourceUri,proto3" json:"source_uri,omitempty"`
	// The release notes in Markdown format.
	ReleaseNotes string `protobuf:"bytes,4,opt,name=release_notes,json=releaseNotes,proto3" json:"release_notes,omitempty"`
	// contains filtered or unexported fields
}

func (*CliRelease) Descriptor deprecated

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

Deprecated: Use CliRelease.ProtoReflect.Descriptor instead.

func (*CliRelease) GetReleaseNotes

func (x *CliRelease) GetReleaseNotes() string

func (*CliRelease) GetReleaseTime

func (x *CliRelease) GetReleaseTime() *timestamppb.Timestamp

func (*CliRelease) GetSourceUri

func (x *CliRelease) GetSourceUri() string

func (*CliRelease) GetVersion

func (x *CliRelease) GetVersion() string

func (*CliRelease) ProtoMessage

func (*CliRelease) ProtoMessage()

func (*CliRelease) ProtoReflect

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

func (*CliRelease) Reset

func (x *CliRelease) Reset()

func (*CliRelease) String

func (x *CliRelease) String() string

type CliServiceClient

type CliServiceClient interface {
	GetRelease(ctx context.Context, in *GetReleaseRequest, opts ...grpc.CallOption) (*GetReleaseResponse, error)
}

CliServiceClient is the client API for CliService 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.

func NewCliServiceClient

func NewCliServiceClient(cc grpc.ClientConnInterface) CliServiceClient

type CliServiceServer

type CliServiceServer interface {
	GetRelease(context.Context, *GetReleaseRequest) (*GetReleaseResponse, error)
}

CliServiceServer is the server API for CliService service. All implementations should embed UnimplementedCliServiceServer for forward compatibility

type GetReleaseRequest

type GetReleaseRequest struct {

	// The CLI version, get the latest version if unspecified.
	Version string `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"`
	// contains filtered or unexported fields
}

func (*GetReleaseRequest) Descriptor deprecated

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

Deprecated: Use GetReleaseRequest.ProtoReflect.Descriptor instead.

func (*GetReleaseRequest) GetVersion

func (x *GetReleaseRequest) GetVersion() string

func (*GetReleaseRequest) ProtoMessage

func (*GetReleaseRequest) ProtoMessage()

func (*GetReleaseRequest) ProtoReflect

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

func (*GetReleaseRequest) Reset

func (x *GetReleaseRequest) Reset()

func (*GetReleaseRequest) String

func (x *GetReleaseRequest) String() string

type GetReleaseResponse

type GetReleaseResponse struct {
	Release *CliRelease `protobuf:"bytes,1,opt,name=release,proto3" json:"release,omitempty"`
	// contains filtered or unexported fields
}

func (*GetReleaseResponse) Descriptor deprecated

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

Deprecated: Use GetReleaseResponse.ProtoReflect.Descriptor instead.

func (*GetReleaseResponse) GetRelease

func (x *GetReleaseResponse) GetRelease() *CliRelease

func (*GetReleaseResponse) ProtoMessage

func (*GetReleaseResponse) ProtoMessage()

func (*GetReleaseResponse) ProtoReflect

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

func (*GetReleaseResponse) Reset

func (x *GetReleaseResponse) Reset()

func (*GetReleaseResponse) String

func (x *GetReleaseResponse) String() string

type UnimplementedCliServiceServer

type UnimplementedCliServiceServer struct {
}

UnimplementedCliServiceServer should be embedded to have forward compatible implementations.

func (UnimplementedCliServiceServer) GetRelease

type UnsafeCliServiceServer

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

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

Jump to

Keyboard shortcuts

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