Documentation ¶
Index ¶
- Variables
- func RegisterVersionServerServer(s grpc.ServiceRegistrar, srv VersionServerServer)
- type GetVersionRequest
- type GetVersionResponse
- func (*GetVersionResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetVersionResponse) GetVersion() *Version
- func (*GetVersionResponse) ProtoMessage()
- func (x *GetVersionResponse) ProtoReflect() protoreflect.Message
- func (x *GetVersionResponse) Reset()
- func (x *GetVersionResponse) String() string
- type SetIfLessThanRequest
- func (*SetIfLessThanRequest) Descriptor() ([]byte, []int)deprecated
- func (x *SetIfLessThanRequest) GetSet() *Version
- func (x *SetIfLessThanRequest) GetTriggerValue() int64
- func (*SetIfLessThanRequest) ProtoMessage()
- func (x *SetIfLessThanRequest) ProtoReflect() protoreflect.Message
- func (x *SetIfLessThanRequest) Reset()
- func (x *SetIfLessThanRequest) String() string
- type SetIfLessThanResponse
- func (*SetIfLessThanResponse) Descriptor() ([]byte, []int)deprecated
- func (x *SetIfLessThanResponse) GetResponse() *Version
- func (x *SetIfLessThanResponse) GetSuccess() bool
- func (*SetIfLessThanResponse) ProtoMessage()
- func (x *SetIfLessThanResponse) ProtoReflect() protoreflect.Message
- func (x *SetIfLessThanResponse) Reset()
- func (x *SetIfLessThanResponse) String() string
- type SetVersionRequest
- type SetVersionResponse
- func (*SetVersionResponse) Descriptor() ([]byte, []int)deprecated
- func (x *SetVersionResponse) GetResponse() *Version
- func (*SetVersionResponse) ProtoMessage()
- func (x *SetVersionResponse) ProtoReflect() protoreflect.Message
- func (x *SetVersionResponse) Reset()
- func (x *SetVersionResponse) String() string
- type UnimplementedVersionServerServer
- func (UnimplementedVersionServerServer) GetVersion(context.Context, *GetVersionRequest) (*GetVersionResponse, error)
- func (UnimplementedVersionServerServer) SetIfLessThan(context.Context, *SetIfLessThanRequest) (*SetIfLessThanResponse, error)
- func (UnimplementedVersionServerServer) SetVersion(context.Context, *SetVersionRequest) (*SetVersionResponse, error)
- type UnsafeVersionServerServer
- type Version
- func (*Version) Descriptor() ([]byte, []int)deprecated
- func (x *Version) GetKey() string
- func (x *Version) GetSetter() string
- func (x *Version) GetValue() int64
- func (*Version) ProtoMessage()
- func (x *Version) ProtoReflect() protoreflect.Message
- func (x *Version) Reset()
- func (x *Version) String() string
- type VersionServerClient
- type VersionServerServer
Constants ¶
This section is empty.
Variables ¶
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) GetVersion(context.Context, *GetVersionRequest) (*GetVersionResponse, error)
func (UnimplementedVersionServerServer) SetIfLessThan ¶
func (UnimplementedVersionServerServer) SetIfLessThan(context.Context, *SetIfLessThanRequest) (*SetIfLessThanResponse, error)
func (UnimplementedVersionServerServer) SetVersion ¶
func (UnimplementedVersionServerServer) SetVersion(context.Context, *SetVersionRequest) (*SetVersionResponse, error)
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) ProtoMessage ¶
func (*Version) ProtoMessage()
func (*Version) ProtoReflect ¶
func (x *Version) ProtoReflect() protoreflect.Message
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.
func NewVersionServerClient ¶
func NewVersionServerClient(cc grpc.ClientConnInterface) VersionServerClient
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