proto

package
v0.0.0-...-c9bcd41 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2022 License: Apache-2.0 Imports: 9 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_versionserver_proto protoreflect.FileDescriptor

Functions

func RegisterVersionServerServer

func RegisterVersionServerServer(s grpc.ServiceRegistrar, srv VersionServerServer)

Types

type GetVersionRequest

type GetVersionRequest struct {
	Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
	// contains filtered or unexported fields
}

func (*GetVersionRequest) Descriptor deprecated

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

Deprecated: Use GetVersionRequest.ProtoReflect.Descriptor instead.

func (*GetVersionRequest) GetKey

func (x *GetVersionRequest) GetKey() string

func (*GetVersionRequest) ProtoMessage

func (*GetVersionRequest) ProtoMessage()

func (*GetVersionRequest) ProtoReflect

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

func (*GetVersionRequest) Reset

func (x *GetVersionRequest) Reset()

func (*GetVersionRequest) String

func (x *GetVersionRequest) String() string

type GetVersionResponse

type GetVersionResponse struct {
	Version *Version `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"`
	// contains filtered or unexported fields
}

func (*GetVersionResponse) Descriptor deprecated

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

Deprecated: Use GetVersionResponse.ProtoReflect.Descriptor instead.

func (*GetVersionResponse) GetVersion

func (x *GetVersionResponse) GetVersion() *Version

func (*GetVersionResponse) ProtoMessage

func (*GetVersionResponse) ProtoMessage()

func (*GetVersionResponse) ProtoReflect

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

func (*GetVersionResponse) Reset

func (x *GetVersionResponse) Reset()

func (*GetVersionResponse) String

func (x *GetVersionResponse) String() string

type SetIfLessThanRequest

type SetIfLessThanRequest struct {
	Set          *Version `protobuf:"bytes,1,opt,name=set,proto3" json:"set,omitempty"`
	TriggerValue int64    `protobuf:"varint,2,opt,name=trigger_value,json=triggerValue,proto3" json:"trigger_value,omitempty"`
	// contains filtered or unexported fields
}

func (*SetIfLessThanRequest) Descriptor deprecated

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

Deprecated: Use SetIfLessThanRequest.ProtoReflect.Descriptor instead.

func (*SetIfLessThanRequest) GetSet

func (x *SetIfLessThanRequest) GetSet() *Version

func (*SetIfLessThanRequest) GetTriggerValue

func (x *SetIfLessThanRequest) GetTriggerValue() int64

func (*SetIfLessThanRequest) ProtoMessage

func (*SetIfLessThanRequest) ProtoMessage()

func (*SetIfLessThanRequest) ProtoReflect

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

func (*SetIfLessThanRequest) Reset

func (x *SetIfLessThanRequest) Reset()

func (*SetIfLessThanRequest) String

func (x *SetIfLessThanRequest) String() string

type SetIfLessThanResponse

type SetIfLessThanResponse struct {
	Response *Version `protobuf:"bytes,1,opt,name=response,proto3" json:"response,omitempty"`
	Success  bool     `protobuf:"varint,2,opt,name=success,proto3" json:"success,omitempty"`
	// contains filtered or unexported fields
}

func (*SetIfLessThanResponse) Descriptor deprecated

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

Deprecated: Use SetIfLessThanResponse.ProtoReflect.Descriptor instead.

func (*SetIfLessThanResponse) GetResponse

func (x *SetIfLessThanResponse) GetResponse() *Version

func (*SetIfLessThanResponse) GetSuccess

func (x *SetIfLessThanResponse) GetSuccess() bool

func (*SetIfLessThanResponse) ProtoMessage

func (*SetIfLessThanResponse) ProtoMessage()

func (*SetIfLessThanResponse) ProtoReflect

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

func (*SetIfLessThanResponse) Reset

func (x *SetIfLessThanResponse) Reset()

func (*SetIfLessThanResponse) String

func (x *SetIfLessThanResponse) String() string

type SetVersionRequest

type SetVersionRequest struct {
	Set *Version `protobuf:"bytes,1,opt,name=set,proto3" json:"set,omitempty"`
	// contains filtered or unexported fields
}

func (*SetVersionRequest) Descriptor deprecated

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

Deprecated: Use SetVersionRequest.ProtoReflect.Descriptor instead.

func (*SetVersionRequest) GetSet

func (x *SetVersionRequest) GetSet() *Version

func (*SetVersionRequest) ProtoMessage

func (*SetVersionRequest) ProtoMessage()

func (*SetVersionRequest) ProtoReflect

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

func (*SetVersionRequest) Reset

func (x *SetVersionRequest) Reset()

func (*SetVersionRequest) String

func (x *SetVersionRequest) String() string

type SetVersionResponse

type SetVersionResponse struct {
	Response *Version `protobuf:"bytes,1,opt,name=response,proto3" json:"response,omitempty"`
	// contains filtered or unexported fields
}

func (*SetVersionResponse) Descriptor deprecated

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

Deprecated: Use SetVersionResponse.ProtoReflect.Descriptor instead.

func (*SetVersionResponse) GetResponse

func (x *SetVersionResponse) GetResponse() *Version

func (*SetVersionResponse) ProtoMessage

func (*SetVersionResponse) ProtoMessage()

func (*SetVersionResponse) ProtoReflect

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

func (*SetVersionResponse) Reset

func (x *SetVersionResponse) Reset()

func (*SetVersionResponse) String

func (x *SetVersionResponse) String() string

type UnimplementedVersionServerServer

type UnimplementedVersionServerServer struct {
}

UnimplementedVersionServerServer should be embedded to have forward compatible implementations.

func (UnimplementedVersionServerServer) GetVersion

func (UnimplementedVersionServerServer) SetIfLessThan

func (UnimplementedVersionServerServer) SetVersion

type UnsafeVersionServerServer

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

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

type Version

type Version struct {
	Key    string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
	Value  int64  `protobuf:"varint,2,opt,name=value,proto3" json:"value,omitempty"`
	Setter string `protobuf:"bytes,3,opt,name=setter,proto3" json:"setter,omitempty"`
	// contains filtered or unexported fields
}

func (*Version) Descriptor deprecated

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

Deprecated: Use Version.ProtoReflect.Descriptor instead.

func (*Version) GetKey

func (x *Version) GetKey() string

func (*Version) GetSetter

func (x *Version) GetSetter() string

func (*Version) GetValue

func (x *Version) GetValue() int64

func (*Version) ProtoMessage

func (*Version) ProtoMessage()

func (*Version) ProtoReflect

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

func (*Version) Reset

func (x *Version) Reset()

func (*Version) String

func (x *Version) String() string

type VersionServerClient

type VersionServerClient interface {
	GetVersion(ctx context.Context, in *GetVersionRequest, opts ...grpc.CallOption) (*GetVersionResponse, error)
	SetVersion(ctx context.Context, in *SetVersionRequest, opts ...grpc.CallOption) (*SetVersionResponse, error)
	SetIfLessThan(ctx context.Context, in *SetIfLessThanRequest, opts ...grpc.CallOption) (*SetIfLessThanResponse, error)
}

VersionServerClient is the client API for VersionServer 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.

type VersionServerServer

type VersionServerServer interface {
	GetVersion(context.Context, *GetVersionRequest) (*GetVersionResponse, error)
	SetVersion(context.Context, *SetVersionRequest) (*SetVersionResponse, error)
	SetIfLessThan(context.Context, *SetIfLessThanRequest) (*SetIfLessThanResponse, error)
}

VersionServerServer is the server API for VersionServer service. All implementations should embed UnimplementedVersionServerServer for forward compatibility

Jump to

Keyboard shortcuts

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