etcdserverpb

package
v2.3.8 Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2017 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package etcdserverpb is a generated protocol buffer package.

It is generated from these files:

etcdserver.proto
raft_internal.proto
rpc.proto

It has these top-level messages:

Request
Metadata
InternalRaftRequest
EmptyResponse
ResponseHeader
RangeRequest
RangeResponse
PutRequest
PutResponse
DeleteRangeRequest
DeleteRangeResponse
RequestUnion
ResponseUnion
Compare
TxnRequest
TxnResponse
CompactionRequest
CompactionResponse
HashRequest
HashResponse
WatchRequest
WatchCreateRequest
WatchCancelRequest
WatchResponse
LeaseCreateRequest
LeaseCreateResponse
LeaseRevokeRequest
LeaseRevokeResponse
LeaseKeepAliveRequest
LeaseKeepAliveResponse
Member
MemberAddRequest
MemberAddResponse
MemberRemoveRequest
MemberRemoveResponse
MemberUpdateRequest
MemberUpdateResponse
MemberListRequest
MemberListResponse
DefragmentRequest
DefragmentResponse
AuthEnableRequest
AuthDisableRequest
AuthenticateRequest
UserAddRequest
UserGetRequest
UserDeleteRequest
UserChangePasswordRequest
UserGrantRequest
UserRevokeRequest
RoleAddRequest
RoleGetRequest
RoleDeleteRequest
RoleGrantRequest
RoleRevokeRequest
AuthEnableResponse
AuthDisableResponse
AuthenticateResponse
UserAddResponse
UserGetResponse
UserDeleteResponse
UserChangePasswordResponse
UserGrantResponse
UserRevokeResponse
RoleAddResponse
RoleGetResponse
RoleDeleteResponse
RoleGrantResponse
RoleRevokeResponse

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthEtcdserver = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowEtcdserver   = fmt.Errorf("proto: integer overflow")
)
View Source
var (
	ErrInvalidLengthRaftInternal = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowRaftInternal   = fmt.Errorf("proto: integer overflow")
)
View Source
var (
	ErrInvalidLengthRpc = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowRpc   = fmt.Errorf("proto: integer overflow")
)
View Source
var Compare_CompareResult_name = map[int32]string{
	0: "EQUAL",
	1: "GREATER",
	2: "LESS",
}
View Source
var Compare_CompareResult_value = map[string]int32{
	"EQUAL":   0,
	"GREATER": 1,
	"LESS":    2,
}
View Source
var Compare_CompareTarget_name = map[int32]string{
	0: "VERSION",
	1: "CREATE",
	2: "MOD",
	3: "VALUE",
}
View Source
var Compare_CompareTarget_value = map[string]int32{
	"VERSION": 0,
	"CREATE":  1,
	"MOD":     2,
	"VALUE":   3,
}
View Source
var RangeRequest_SortOrder_name = map[int32]string{
	0: "NONE",
	1: "ASCEND",
	2: "DESCEND",
}
View Source
var RangeRequest_SortOrder_value = map[string]int32{
	"NONE":    0,
	"ASCEND":  1,
	"DESCEND": 2,
}
View Source
var RangeRequest_SortTarget_name = map[int32]string{
	0: "KEY",
	1: "VERSION",
	2: "CREATE",
	3: "MOD",
	4: "VALUE",
}
View Source
var RangeRequest_SortTarget_value = map[string]int32{
	"KEY":     0,
	"VERSION": 1,
	"CREATE":  2,
	"MOD":     3,
	"VALUE":   4,
}

Functions

func RegisterAuthServer added in v2.3.0

func RegisterAuthServer(s *grpc.Server, srv AuthServer)

func RegisterClusterServer added in v2.3.0

func RegisterClusterServer(s *grpc.Server, srv ClusterServer)

func RegisterKVServer added in v2.3.0

func RegisterKVServer(s *grpc.Server, srv KVServer)

func RegisterLeaseServer added in v2.3.0

func RegisterLeaseServer(s *grpc.Server, srv LeaseServer)

func RegisterMaintenanceServer added in v2.3.0

func RegisterMaintenanceServer(s *grpc.Server, srv MaintenanceServer)

func RegisterWatchServer added in v2.3.0

func RegisterWatchServer(s *grpc.Server, srv WatchServer)

Types

type AuthClient added in v2.3.0

type AuthClient interface {
	// AuthEnable enables authentication.
	AuthEnable(ctx context.Context, in *AuthEnableRequest, opts ...grpc.CallOption) (*AuthEnableResponse, error)
	// AuthDisable disables authentication.
	AuthDisable(ctx context.Context, in *AuthDisableRequest, opts ...grpc.CallOption) (*AuthDisableResponse, error)
	// Authenticate processes authenticate request.
	Authenticate(ctx context.Context, in *AuthenticateRequest, opts ...grpc.CallOption) (*AuthenticateResponse, error)
	// UserAdd adds a new user.
	UserAdd(ctx context.Context, in *UserAddRequest, opts ...grpc.CallOption) (*UserAddResponse, error)
	// UserGet gets a detailed information of a user or lists entire users.
	UserGet(ctx context.Context, in *UserGetRequest, opts ...grpc.CallOption) (*UserGetResponse, error)
	// UserDelete deletes a specified user.
	UserDelete(ctx context.Context, in *UserDeleteRequest, opts ...grpc.CallOption) (*UserDeleteResponse, error)
	// UserChangePassword changes password of a specified user.
	UserChangePassword(ctx context.Context, in *UserChangePasswordRequest, opts ...grpc.CallOption) (*UserChangePasswordResponse, error)
	// UserGrant grants a role to a specified user.
	UserGrant(ctx context.Context, in *UserGrantRequest, opts ...grpc.CallOption) (*UserGrantResponse, error)
	// UserRevoke revokes a role of specified user.
	UserRevoke(ctx context.Context, in *UserRevokeRequest, opts ...grpc.CallOption) (*UserRevokeResponse, error)
	// RoleAdd adds a new role.
	RoleAdd(ctx context.Context, in *RoleAddRequest, opts ...grpc.CallOption) (*RoleAddResponse, error)
	// RoleGet gets a detailed information of a role or lists entire roles.
	RoleGet(ctx context.Context, in *RoleGetRequest, opts ...grpc.CallOption) (*RoleGetResponse, error)
	// RoleDelete deletes a specified role.
	RoleDelete(ctx context.Context, in *RoleDeleteRequest, opts ...grpc.CallOption) (*RoleDeleteResponse, error)
	// RoleGrant grants a permission of a specified key or range to a specified role.
	RoleGrant(ctx context.Context, in *RoleGrantRequest, opts ...grpc.CallOption) (*RoleGrantResponse, error)
	// RoleRevoke revokes a key or range permission of a specified role.
	RoleRevoke(ctx context.Context, in *RoleRevokeRequest, opts ...grpc.CallOption) (*RoleRevokeResponse, error)
}

func NewAuthClient added in v2.3.0

func NewAuthClient(cc *grpc.ClientConn) AuthClient

type AuthDisableRequest added in v2.3.0

type AuthDisableRequest struct {
}

func (*AuthDisableRequest) Marshal added in v2.3.0

func (m *AuthDisableRequest) Marshal() (data []byte, err error)

func (*AuthDisableRequest) MarshalTo added in v2.3.0

func (m *AuthDisableRequest) MarshalTo(data []byte) (int, error)

func (*AuthDisableRequest) ProtoMessage added in v2.3.0

func (*AuthDisableRequest) ProtoMessage()

func (*AuthDisableRequest) Reset added in v2.3.0

func (m *AuthDisableRequest) Reset()

func (*AuthDisableRequest) Size added in v2.3.0

func (m *AuthDisableRequest) Size() (n int)

func (*AuthDisableRequest) String added in v2.3.0

func (m *AuthDisableRequest) String() string

func (*AuthDisableRequest) Unmarshal added in v2.3.0

func (m *AuthDisableRequest) Unmarshal(data []byte) error

type AuthDisableResponse added in v2.3.0

type AuthDisableResponse struct {
	Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"`
}

func (*AuthDisableResponse) GetHeader added in v2.3.0

func (m *AuthDisableResponse) GetHeader() *ResponseHeader

func (*AuthDisableResponse) Marshal added in v2.3.0

func (m *AuthDisableResponse) Marshal() (data []byte, err error)

func (*AuthDisableResponse) MarshalTo added in v2.3.0

func (m *AuthDisableResponse) MarshalTo(data []byte) (int, error)

func (*AuthDisableResponse) ProtoMessage added in v2.3.0

func (*AuthDisableResponse) ProtoMessage()

func (*AuthDisableResponse) Reset added in v2.3.0

func (m *AuthDisableResponse) Reset()

func (*AuthDisableResponse) Size added in v2.3.0

func (m *AuthDisableResponse) Size() (n int)

func (*AuthDisableResponse) String added in v2.3.0

func (m *AuthDisableResponse) String() string

func (*AuthDisableResponse) Unmarshal added in v2.3.0

func (m *AuthDisableResponse) Unmarshal(data []byte) error

type AuthEnableRequest added in v2.3.0

type AuthEnableRequest struct {
}

func (*AuthEnableRequest) Marshal added in v2.3.0

func (m *AuthEnableRequest) Marshal() (data []byte, err error)

func (*AuthEnableRequest) MarshalTo added in v2.3.0

func (m *AuthEnableRequest) MarshalTo(data []byte) (int, error)

func (*AuthEnableRequest) ProtoMessage added in v2.3.0

func (*AuthEnableRequest) ProtoMessage()

func (*AuthEnableRequest) Reset added in v2.3.0

func (m *AuthEnableRequest) Reset()

func (*AuthEnableRequest) Size added in v2.3.0

func (m *AuthEnableRequest) Size() (n int)

func (*AuthEnableRequest) String added in v2.3.0

func (m *AuthEnableRequest) String() string

func (*AuthEnableRequest) Unmarshal added in v2.3.0

func (m *AuthEnableRequest) Unmarshal(data []byte) error

type AuthEnableResponse added in v2.3.0

type AuthEnableResponse struct {
	Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"`
}

func (*AuthEnableResponse) GetHeader added in v2.3.0

func (m *AuthEnableResponse) GetHeader() *ResponseHeader

func (*AuthEnableResponse) Marshal added in v2.3.0

func (m *AuthEnableResponse) Marshal() (data []byte, err error)

func (*AuthEnableResponse) MarshalTo added in v2.3.0

func (m *AuthEnableResponse) MarshalTo(data []byte) (int, error)

func (*AuthEnableResponse) ProtoMessage added in v2.3.0

func (*AuthEnableResponse) ProtoMessage()

func (*AuthEnableResponse) Reset added in v2.3.0

func (m *AuthEnableResponse) Reset()

func (*AuthEnableResponse) Size added in v2.3.0

func (m *AuthEnableResponse) Size() (n int)

func (*AuthEnableResponse) String added in v2.3.0

func (m *AuthEnableResponse) String() string

func (*AuthEnableResponse) Unmarshal added in v2.3.0

func (m *AuthEnableResponse) Unmarshal(data []byte) error

type AuthServer added in v2.3.0

type AuthServer interface {
	// AuthEnable enables authentication.
	AuthEnable(context.Context, *AuthEnableRequest) (*AuthEnableResponse, error)
	// AuthDisable disables authentication.
	AuthDisable(context.Context, *AuthDisableRequest) (*AuthDisableResponse, error)
	// Authenticate processes authenticate request.
	Authenticate(context.Context, *AuthenticateRequest) (*AuthenticateResponse, error)
	// UserAdd adds a new user.
	UserAdd(context.Context, *UserAddRequest) (*UserAddResponse, error)
	// UserGet gets a detailed information of a user or lists entire users.
	UserGet(context.Context, *UserGetRequest) (*UserGetResponse, error)
	// UserDelete deletes a specified user.
	UserDelete(context.Context, *UserDeleteRequest) (*UserDeleteResponse, error)
	// UserChangePassword changes password of a specified user.
	UserChangePassword(context.Context, *UserChangePasswordRequest) (*UserChangePasswordResponse, error)
	// UserGrant grants a role to a specified user.
	UserGrant(context.Context, *UserGrantRequest) (*UserGrantResponse, error)
	// UserRevoke revokes a role of specified user.
	UserRevoke(context.Context, *UserRevokeRequest) (*UserRevokeResponse, error)
	// RoleAdd adds a new role.
	RoleAdd(context.Context, *RoleAddRequest) (*RoleAddResponse, error)
	// RoleGet gets a detailed information of a role or lists entire roles.
	RoleGet(context.Context, *RoleGetRequest) (*RoleGetResponse, error)
	// RoleDelete deletes a specified role.
	RoleDelete(context.Context, *RoleDeleteRequest) (*RoleDeleteResponse, error)
	// RoleGrant grants a permission of a specified key or range to a specified role.
	RoleGrant(context.Context, *RoleGrantRequest) (*RoleGrantResponse, error)
	// RoleRevoke revokes a key or range permission of a specified role.
	RoleRevoke(context.Context, *RoleRevokeRequest) (*RoleRevokeResponse, error)
}

type AuthenticateRequest added in v2.3.0

type AuthenticateRequest struct {
}

func (*AuthenticateRequest) Marshal added in v2.3.0

func (m *AuthenticateRequest) Marshal() (data []byte, err error)

func (*AuthenticateRequest) MarshalTo added in v2.3.0

func (m *AuthenticateRequest) MarshalTo(data []byte) (int, error)

func (*AuthenticateRequest) ProtoMessage added in v2.3.0

func (*AuthenticateRequest) ProtoMessage()

func (*AuthenticateRequest) Reset added in v2.3.0

func (m *AuthenticateRequest) Reset()

func (*AuthenticateRequest) Size added in v2.3.0

func (m *AuthenticateRequest) Size() (n int)

func (*AuthenticateRequest) String added in v2.3.0

func (m *AuthenticateRequest) String() string

func (*AuthenticateRequest) Unmarshal added in v2.3.0

func (m *AuthenticateRequest) Unmarshal(data []byte) error

type AuthenticateResponse added in v2.3.0

type AuthenticateResponse struct {
	Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"`
}

func (*AuthenticateResponse) GetHeader added in v2.3.0

func (m *AuthenticateResponse) GetHeader() *ResponseHeader

func (*AuthenticateResponse) Marshal added in v2.3.0

func (m *AuthenticateResponse) Marshal() (data []byte, err error)

func (*AuthenticateResponse) MarshalTo added in v2.3.0

func (m *AuthenticateResponse) MarshalTo(data []byte) (int, error)

func (*AuthenticateResponse) ProtoMessage added in v2.3.0

func (*AuthenticateResponse) ProtoMessage()

func (*AuthenticateResponse) Reset added in v2.3.0

func (m *AuthenticateResponse) Reset()

func (*AuthenticateResponse) Size added in v2.3.0

func (m *AuthenticateResponse) Size() (n int)

func (*AuthenticateResponse) String added in v2.3.0

func (m *AuthenticateResponse) String() string

func (*AuthenticateResponse) Unmarshal added in v2.3.0

func (m *AuthenticateResponse) Unmarshal(data []byte) error

type ClusterClient added in v2.3.0

type ClusterClient interface {
	// MemberAdd adds a member into the cluster.
	MemberAdd(ctx context.Context, in *MemberAddRequest, opts ...grpc.CallOption) (*MemberAddResponse, error)
	// MemberRemove removes an existing member from the cluster.
	MemberRemove(ctx context.Context, in *MemberRemoveRequest, opts ...grpc.CallOption) (*MemberRemoveResponse, error)
	// MemberUpdate updates the member configuration.
	MemberUpdate(ctx context.Context, in *MemberUpdateRequest, opts ...grpc.CallOption) (*MemberUpdateResponse, error)
	// MemberList lists all the members in the cluster.
	MemberList(ctx context.Context, in *MemberListRequest, opts ...grpc.CallOption) (*MemberListResponse, error)
}

func NewClusterClient added in v2.3.0

func NewClusterClient(cc *grpc.ClientConn) ClusterClient

type ClusterServer added in v2.3.0

type ClusterServer interface {
	// MemberAdd adds a member into the cluster.
	MemberAdd(context.Context, *MemberAddRequest) (*MemberAddResponse, error)
	// MemberRemove removes an existing member from the cluster.
	MemberRemove(context.Context, *MemberRemoveRequest) (*MemberRemoveResponse, error)
	// MemberUpdate updates the member configuration.
	MemberUpdate(context.Context, *MemberUpdateRequest) (*MemberUpdateResponse, error)
	// MemberList lists all the members in the cluster.
	MemberList(context.Context, *MemberListRequest) (*MemberListResponse, error)
}

type CompactionRequest added in v2.1.0

type CompactionRequest struct {
	Revision int64 `protobuf:"varint,1,opt,name=revision,proto3" json:"revision,omitempty"`
}

Compaction compacts the kv store upto the given revision (including). It removes the old versions of a key. It keeps the newest version of the key even if its latest modification revision is smaller than the given revision.

func (*CompactionRequest) Marshal added in v2.1.0

func (m *CompactionRequest) Marshal() (data []byte, err error)

func (*CompactionRequest) MarshalTo added in v2.1.0

func (m *CompactionRequest) MarshalTo(data []byte) (int, error)

func (*CompactionRequest) ProtoMessage added in v2.1.0

func (*CompactionRequest) ProtoMessage()

func (*CompactionRequest) Reset added in v2.1.0

func (m *CompactionRequest) Reset()

func (*CompactionRequest) Size added in v2.1.0

func (m *CompactionRequest) Size() (n int)

func (*CompactionRequest) String added in v2.1.0

func (m *CompactionRequest) String() string

func (*CompactionRequest) Unmarshal added in v2.1.0

func (m *CompactionRequest) Unmarshal(data []byte) error

type CompactionResponse added in v2.1.0

type CompactionResponse struct {
	Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"`
}

func (*CompactionResponse) GetHeader added in v2.1.0

func (m *CompactionResponse) GetHeader() *ResponseHeader

func (*CompactionResponse) Marshal added in v2.1.0

func (m *CompactionResponse) Marshal() (data []byte, err error)

func (*CompactionResponse) MarshalTo added in v2.1.0

func (m *CompactionResponse) MarshalTo(data []byte) (int, error)

func (*CompactionResponse) ProtoMessage added in v2.1.0

func (*CompactionResponse) ProtoMessage()

func (*CompactionResponse) Reset added in v2.1.0

func (m *CompactionResponse) Reset()

func (*CompactionResponse) Size added in v2.1.0

func (m *CompactionResponse) Size() (n int)

func (*CompactionResponse) String added in v2.1.0

func (m *CompactionResponse) String() string

func (*CompactionResponse) Unmarshal added in v2.1.0

func (m *CompactionResponse) Unmarshal(data []byte) error

type Compare added in v2.1.0

type Compare struct {
	Result Compare_CompareResult `protobuf:"varint,1,opt,name=result,proto3,enum=etcdserverpb.Compare_CompareResult" json:"result,omitempty"`
	Target Compare_CompareTarget `protobuf:"varint,2,opt,name=target,proto3,enum=etcdserverpb.Compare_CompareTarget" json:"target,omitempty"`
	// key path
	Key []byte `protobuf:"bytes,3,opt,name=key,proto3" json:"key,omitempty"`
	// Types that are valid to be assigned to TargetUnion:
	//	*Compare_Version
	//	*Compare_CreateRevision
	//	*Compare_ModRevision
	//	*Compare_Value
	TargetUnion isCompare_TargetUnion `protobuf_oneof:"target_union"`
}

func (*Compare) GetCreateRevision added in v2.2.5

func (m *Compare) GetCreateRevision() int64

func (*Compare) GetModRevision added in v2.2.5

func (m *Compare) GetModRevision() int64

func (*Compare) GetTargetUnion added in v2.2.5

func (m *Compare) GetTargetUnion() isCompare_TargetUnion

func (*Compare) GetValue added in v2.2.5

func (m *Compare) GetValue() []byte

func (*Compare) GetVersion added in v2.2.5

func (m *Compare) GetVersion() int64

func (*Compare) Marshal added in v2.1.0

func (m *Compare) Marshal() (data []byte, err error)

func (*Compare) MarshalTo added in v2.1.0

func (m *Compare) MarshalTo(data []byte) (int, error)

func (*Compare) ProtoMessage added in v2.1.0

func (*Compare) ProtoMessage()

func (*Compare) Reset added in v2.1.0

func (m *Compare) Reset()

func (*Compare) Size added in v2.1.0

func (m *Compare) Size() (n int)

func (*Compare) String added in v2.1.0

func (m *Compare) String() string

func (*Compare) Unmarshal added in v2.1.0

func (m *Compare) Unmarshal(data []byte) error

func (*Compare) XXX_OneofFuncs added in v2.2.5

func (*Compare) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), []interface{})

XXX_OneofFuncs is for the internal use of the proto package.

type Compare_CompareResult added in v2.2.0

type Compare_CompareResult int32
const (
	Compare_EQUAL   Compare_CompareResult = 0
	Compare_GREATER Compare_CompareResult = 1
	Compare_LESS    Compare_CompareResult = 2
)

func (Compare_CompareResult) String added in v2.2.0

func (x Compare_CompareResult) String() string

type Compare_CompareTarget added in v2.2.0

type Compare_CompareTarget int32
const (
	Compare_VERSION Compare_CompareTarget = 0
	Compare_CREATE  Compare_CompareTarget = 1
	Compare_MOD     Compare_CompareTarget = 2
	Compare_VALUE   Compare_CompareTarget = 3
)

func (Compare_CompareTarget) String added in v2.2.0

func (x Compare_CompareTarget) String() string

type Compare_CreateRevision added in v2.2.5

type Compare_CreateRevision struct {
	CreateRevision int64 `protobuf:"varint,5,opt,name=create_revision,proto3,oneof"`
}

func (*Compare_CreateRevision) MarshalTo added in v2.2.5

func (m *Compare_CreateRevision) MarshalTo(data []byte) (int, error)

func (*Compare_CreateRevision) Size added in v2.2.5

func (m *Compare_CreateRevision) Size() (n int)

type Compare_ModRevision added in v2.2.5

type Compare_ModRevision struct {
	ModRevision int64 `protobuf:"varint,6,opt,name=mod_revision,proto3,oneof"`
}

func (*Compare_ModRevision) MarshalTo added in v2.2.5

func (m *Compare_ModRevision) MarshalTo(data []byte) (int, error)

func (*Compare_ModRevision) Size added in v2.2.5

func (m *Compare_ModRevision) Size() (n int)

type Compare_Value added in v2.2.5

type Compare_Value struct {
	Value []byte `protobuf:"bytes,7,opt,name=value,proto3,oneof"`
}

func (*Compare_Value) MarshalTo added in v2.2.5

func (m *Compare_Value) MarshalTo(data []byte) (int, error)

func (*Compare_Value) Size added in v2.2.5

func (m *Compare_Value) Size() (n int)

type Compare_Version added in v2.2.5

type Compare_Version struct {
	Version int64 `protobuf:"varint,4,opt,name=version,proto3,oneof"`
}

func (*Compare_Version) MarshalTo added in v2.2.5

func (m *Compare_Version) MarshalTo(data []byte) (int, error)

func (*Compare_Version) Size added in v2.2.5

func (m *Compare_Version) Size() (n int)

type DefragmentRequest added in v2.3.0

type DefragmentRequest struct {
}

func (*DefragmentRequest) Marshal added in v2.3.0

func (m *DefragmentRequest) Marshal() (data []byte, err error)

func (*DefragmentRequest) MarshalTo added in v2.3.0

func (m *DefragmentRequest) MarshalTo(data []byte) (int, error)

func (*DefragmentRequest) ProtoMessage added in v2.3.0

func (*DefragmentRequest) ProtoMessage()

func (*DefragmentRequest) Reset added in v2.3.0

func (m *DefragmentRequest) Reset()

func (*DefragmentRequest) Size added in v2.3.0

func (m *DefragmentRequest) Size() (n int)

func (*DefragmentRequest) String added in v2.3.0

func (m *DefragmentRequest) String() string

func (*DefragmentRequest) Unmarshal added in v2.3.0

func (m *DefragmentRequest) Unmarshal(data []byte) error

type DefragmentResponse added in v2.3.0

type DefragmentResponse struct {
	Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"`
}

func (*DefragmentResponse) GetHeader added in v2.3.0

func (m *DefragmentResponse) GetHeader() *ResponseHeader

func (*DefragmentResponse) Marshal added in v2.3.0

func (m *DefragmentResponse) Marshal() (data []byte, err error)

func (*DefragmentResponse) MarshalTo added in v2.3.0

func (m *DefragmentResponse) MarshalTo(data []byte) (int, error)

func (*DefragmentResponse) ProtoMessage added in v2.3.0

func (*DefragmentResponse) ProtoMessage()

func (*DefragmentResponse) Reset added in v2.3.0

func (m *DefragmentResponse) Reset()

func (*DefragmentResponse) Size added in v2.3.0

func (m *DefragmentResponse) Size() (n int)

func (*DefragmentResponse) String added in v2.3.0

func (m *DefragmentResponse) String() string

func (*DefragmentResponse) Unmarshal added in v2.3.0

func (m *DefragmentResponse) Unmarshal(data []byte) error

type DeleteRangeRequest added in v2.1.0

type DeleteRangeRequest struct {
	// if the range_end is not given, the request deletes the key.
	Key []byte `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
	// if the range_end is given, it deletes the keys in range [key, range_end).
	RangeEnd []byte `protobuf:"bytes,2,opt,name=range_end,proto3" json:"range_end,omitempty"`
}

func (*DeleteRangeRequest) Marshal added in v2.1.0

func (m *DeleteRangeRequest) Marshal() (data []byte, err error)

func (*DeleteRangeRequest) MarshalTo added in v2.1.0

func (m *DeleteRangeRequest) MarshalTo(data []byte) (int, error)

func (*DeleteRangeRequest) ProtoMessage added in v2.1.0

func (*DeleteRangeRequest) ProtoMessage()

func (*DeleteRangeRequest) Reset added in v2.1.0

func (m *DeleteRangeRequest) Reset()

func (*DeleteRangeRequest) Size added in v2.1.0

func (m *DeleteRangeRequest) Size() (n int)

func (*DeleteRangeRequest) String added in v2.1.0

func (m *DeleteRangeRequest) String() string

func (*DeleteRangeRequest) Unmarshal added in v2.1.0

func (m *DeleteRangeRequest) Unmarshal(data []byte) error

type DeleteRangeResponse added in v2.1.0

type DeleteRangeResponse struct {
	Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"`
	// Deleted is the number of keys that got deleted.
	Deleted int64 `protobuf:"varint,2,opt,name=deleted,proto3" json:"deleted,omitempty"`
}

func (*DeleteRangeResponse) GetHeader added in v2.1.0

func (m *DeleteRangeResponse) GetHeader() *ResponseHeader

func (*DeleteRangeResponse) Marshal added in v2.1.0

func (m *DeleteRangeResponse) Marshal() (data []byte, err error)

func (*DeleteRangeResponse) MarshalTo added in v2.1.0

func (m *DeleteRangeResponse) MarshalTo(data []byte) (int, error)

func (*DeleteRangeResponse) ProtoMessage added in v2.1.0

func (*DeleteRangeResponse) ProtoMessage()

func (*DeleteRangeResponse) Reset added in v2.1.0

func (m *DeleteRangeResponse) Reset()

func (*DeleteRangeResponse) Size added in v2.1.0

func (m *DeleteRangeResponse) Size() (n int)

func (*DeleteRangeResponse) String added in v2.1.0

func (m *DeleteRangeResponse) String() string

func (*DeleteRangeResponse) Unmarshal added in v2.1.0

func (m *DeleteRangeResponse) Unmarshal(data []byte) error

type EmptyResponse added in v2.3.0

type EmptyResponse struct {
}

func (*EmptyResponse) Marshal added in v2.3.0

func (m *EmptyResponse) Marshal() (data []byte, err error)

func (*EmptyResponse) MarshalTo added in v2.3.0

func (m *EmptyResponse) MarshalTo(data []byte) (int, error)

func (*EmptyResponse) ProtoMessage added in v2.3.0

func (*EmptyResponse) ProtoMessage()

func (*EmptyResponse) Reset added in v2.3.0

func (m *EmptyResponse) Reset()

func (*EmptyResponse) Size added in v2.3.0

func (m *EmptyResponse) Size() (n int)

func (*EmptyResponse) String added in v2.3.0

func (m *EmptyResponse) String() string

func (*EmptyResponse) Unmarshal added in v2.3.0

func (m *EmptyResponse) Unmarshal(data []byte) error

type HashRequest added in v2.3.0

type HashRequest struct {
}

func (*HashRequest) Marshal added in v2.3.0

func (m *HashRequest) Marshal() (data []byte, err error)

func (*HashRequest) MarshalTo added in v2.3.0

func (m *HashRequest) MarshalTo(data []byte) (int, error)

func (*HashRequest) ProtoMessage added in v2.3.0

func (*HashRequest) ProtoMessage()

func (*HashRequest) Reset added in v2.3.0

func (m *HashRequest) Reset()

func (*HashRequest) Size added in v2.3.0

func (m *HashRequest) Size() (n int)

func (*HashRequest) String added in v2.3.0

func (m *HashRequest) String() string

func (*HashRequest) Unmarshal added in v2.3.0

func (m *HashRequest) Unmarshal(data []byte) error

type HashResponse added in v2.3.0

type HashResponse struct {
	Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"`
	Hash   uint32          `protobuf:"varint,2,opt,name=hash,proto3" json:"hash,omitempty"`
}

func (*HashResponse) GetHeader added in v2.3.0

func (m *HashResponse) GetHeader() *ResponseHeader

func (*HashResponse) Marshal added in v2.3.0

func (m *HashResponse) Marshal() (data []byte, err error)

func (*HashResponse) MarshalTo added in v2.3.0

func (m *HashResponse) MarshalTo(data []byte) (int, error)

func (*HashResponse) ProtoMessage added in v2.3.0

func (*HashResponse) ProtoMessage()

func (*HashResponse) Reset added in v2.3.0

func (m *HashResponse) Reset()

func (*HashResponse) Size added in v2.3.0

func (m *HashResponse) Size() (n int)

func (*HashResponse) String added in v2.3.0

func (m *HashResponse) String() string

func (*HashResponse) Unmarshal added in v2.3.0

func (m *HashResponse) Unmarshal(data []byte) error

type InternalRaftRequest added in v2.2.0

type InternalRaftRequest struct {
	ID          uint64              `protobuf:"varint,1,opt,name=ID,proto3" json:"ID,omitempty"`
	V2          *Request            `protobuf:"bytes,2,opt,name=v2" json:"v2,omitempty"`
	Range       *RangeRequest       `protobuf:"bytes,3,opt,name=range" json:"range,omitempty"`
	Put         *PutRequest         `protobuf:"bytes,4,opt,name=put" json:"put,omitempty"`
	DeleteRange *DeleteRangeRequest `protobuf:"bytes,5,opt,name=delete_range" json:"delete_range,omitempty"`
	Txn         *TxnRequest         `protobuf:"bytes,6,opt,name=txn" json:"txn,omitempty"`
	Compaction  *CompactionRequest  `protobuf:"bytes,7,opt,name=compaction" json:"compaction,omitempty"`
	LeaseCreate *LeaseCreateRequest `protobuf:"bytes,8,opt,name=lease_create" json:"lease_create,omitempty"`
	LeaseRevoke *LeaseRevokeRequest `protobuf:"bytes,9,opt,name=lease_revoke" json:"lease_revoke,omitempty"`
	AuthEnable  *AuthEnableRequest  `protobuf:"bytes,10,opt,name=auth_enable" json:"auth_enable,omitempty"`
}

An InternalRaftRequest is the union of all requests which can be sent via raft.

func (*InternalRaftRequest) Marshal added in v2.2.0

func (m *InternalRaftRequest) Marshal() (data []byte, err error)

func (*InternalRaftRequest) MarshalTo added in v2.2.0

func (m *InternalRaftRequest) MarshalTo(data []byte) (int, error)

func (*InternalRaftRequest) ProtoMessage added in v2.2.0

func (*InternalRaftRequest) ProtoMessage()

func (*InternalRaftRequest) Reset added in v2.2.0

func (m *InternalRaftRequest) Reset()

func (*InternalRaftRequest) Size added in v2.2.0

func (m *InternalRaftRequest) Size() (n int)

func (*InternalRaftRequest) String added in v2.2.0

func (m *InternalRaftRequest) String() string

func (*InternalRaftRequest) Unmarshal added in v2.2.0

func (m *InternalRaftRequest) Unmarshal(data []byte) error

type KVClient added in v2.3.0

type KVClient interface {
	// Range gets the keys in the range from the store.
	Range(ctx context.Context, in *RangeRequest, opts ...grpc.CallOption) (*RangeResponse, error)
	// Put puts the given key into the store.
	// A put request increases the revision of the store,
	// and generates one event in the event history.
	Put(ctx context.Context, in *PutRequest, opts ...grpc.CallOption) (*PutResponse, error)
	// Delete deletes the given range from the store.
	// A delete request increase the revision of the store,
	// and generates one event in the event history.
	DeleteRange(ctx context.Context, in *DeleteRangeRequest, opts ...grpc.CallOption) (*DeleteRangeResponse, error)
	// Txn processes all the requests in one transaction.
	// A txn request increases the revision of the store,
	// and generates events with the same revision in the event history.
	// It is not allowed to modify the same key several times within one txn.
	Txn(ctx context.Context, in *TxnRequest, opts ...grpc.CallOption) (*TxnResponse, error)
	// Compact compacts the event history in etcd. User should compact the
	// event history periodically, or it will grow infinitely.
	Compact(ctx context.Context, in *CompactionRequest, opts ...grpc.CallOption) (*CompactionResponse, error)
	// Hash returns the hash of local KV state for consistency checking purpose.
	// This is designed for testing purpose. Do not use this in production when there
	// are ongoing transactions.
	Hash(ctx context.Context, in *HashRequest, opts ...grpc.CallOption) (*HashResponse, error)
}

func NewKVClient added in v2.3.0

func NewKVClient(cc *grpc.ClientConn) KVClient

type KVServer added in v2.3.0

type KVServer interface {
	// Range gets the keys in the range from the store.
	Range(context.Context, *RangeRequest) (*RangeResponse, error)
	// Put puts the given key into the store.
	// A put request increases the revision of the store,
	// and generates one event in the event history.
	Put(context.Context, *PutRequest) (*PutResponse, error)
	// Delete deletes the given range from the store.
	// A delete request increase the revision of the store,
	// and generates one event in the event history.
	DeleteRange(context.Context, *DeleteRangeRequest) (*DeleteRangeResponse, error)
	// Txn processes all the requests in one transaction.
	// A txn request increases the revision of the store,
	// and generates events with the same revision in the event history.
	// It is not allowed to modify the same key several times within one txn.
	Txn(context.Context, *TxnRequest) (*TxnResponse, error)
	// Compact compacts the event history in etcd. User should compact the
	// event history periodically, or it will grow infinitely.
	Compact(context.Context, *CompactionRequest) (*CompactionResponse, error)
	// Hash returns the hash of local KV state for consistency checking purpose.
	// This is designed for testing purpose. Do not use this in production when there
	// are ongoing transactions.
	Hash(context.Context, *HashRequest) (*HashResponse, error)
}

type LeaseClient added in v2.3.0

type LeaseClient interface {
	// LeaseCreate creates a lease. A lease has a TTL. The lease will expire if the
	// server does not receive a keepAlive within TTL from the lease holder.
	// All keys attached to the lease will be expired and deleted if the lease expires.
	// The key expiration generates an event in event history.
	LeaseCreate(ctx context.Context, in *LeaseCreateRequest, opts ...grpc.CallOption) (*LeaseCreateResponse, error)
	// LeaseRevoke revokes a lease. All the key attached to the lease will be expired and deleted.
	LeaseRevoke(ctx context.Context, in *LeaseRevokeRequest, opts ...grpc.CallOption) (*LeaseRevokeResponse, error)
	// KeepAlive keeps the lease alive.
	LeaseKeepAlive(ctx context.Context, opts ...grpc.CallOption) (Lease_LeaseKeepAliveClient, error)
}

func NewLeaseClient added in v2.3.0

func NewLeaseClient(cc *grpc.ClientConn) LeaseClient

type LeaseCreateRequest added in v2.3.0

type LeaseCreateRequest struct {
	// advisory ttl in seconds
	TTL int64 `protobuf:"varint,1,opt,name=TTL,proto3" json:"TTL,omitempty"`
	// requested ID to create; 0 lets lessor choose
	ID int64 `protobuf:"varint,2,opt,name=ID,proto3" json:"ID,omitempty"`
}

func (*LeaseCreateRequest) Marshal added in v2.3.0

func (m *LeaseCreateRequest) Marshal() (data []byte, err error)

func (*LeaseCreateRequest) MarshalTo added in v2.3.0

func (m *LeaseCreateRequest) MarshalTo(data []byte) (int, error)

func (*LeaseCreateRequest) ProtoMessage added in v2.3.0

func (*LeaseCreateRequest) ProtoMessage()

func (*LeaseCreateRequest) Reset added in v2.3.0

func (m *LeaseCreateRequest) Reset()

func (*LeaseCreateRequest) Size added in v2.3.0

func (m *LeaseCreateRequest) Size() (n int)

func (*LeaseCreateRequest) String added in v2.3.0

func (m *LeaseCreateRequest) String() string

func (*LeaseCreateRequest) Unmarshal added in v2.3.0

func (m *LeaseCreateRequest) Unmarshal(data []byte) error

type LeaseCreateResponse added in v2.3.0

type LeaseCreateResponse struct {
	Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"`
	ID     int64           `protobuf:"varint,2,opt,name=ID,proto3" json:"ID,omitempty"`
	// server decided ttl in second
	TTL   int64  `protobuf:"varint,3,opt,name=TTL,proto3" json:"TTL,omitempty"`
	Error string `protobuf:"bytes,4,opt,name=error,proto3" json:"error,omitempty"`
}

func (*LeaseCreateResponse) GetHeader added in v2.3.0

func (m *LeaseCreateResponse) GetHeader() *ResponseHeader

func (*LeaseCreateResponse) Marshal added in v2.3.0

func (m *LeaseCreateResponse) Marshal() (data []byte, err error)

func (*LeaseCreateResponse) MarshalTo added in v2.3.0

func (m *LeaseCreateResponse) MarshalTo(data []byte) (int, error)

func (*LeaseCreateResponse) ProtoMessage added in v2.3.0

func (*LeaseCreateResponse) ProtoMessage()

func (*LeaseCreateResponse) Reset added in v2.3.0

func (m *LeaseCreateResponse) Reset()

func (*LeaseCreateResponse) Size added in v2.3.0

func (m *LeaseCreateResponse) Size() (n int)

func (*LeaseCreateResponse) String added in v2.3.0

func (m *LeaseCreateResponse) String() string

func (*LeaseCreateResponse) Unmarshal added in v2.3.0

func (m *LeaseCreateResponse) Unmarshal(data []byte) error

type LeaseKeepAliveRequest added in v2.3.0

type LeaseKeepAliveRequest struct {
	ID int64 `protobuf:"varint,1,opt,name=ID,proto3" json:"ID,omitempty"`
}

func (*LeaseKeepAliveRequest) Marshal added in v2.3.0

func (m *LeaseKeepAliveRequest) Marshal() (data []byte, err error)

func (*LeaseKeepAliveRequest) MarshalTo added in v2.3.0

func (m *LeaseKeepAliveRequest) MarshalTo(data []byte) (int, error)

func (*LeaseKeepAliveRequest) ProtoMessage added in v2.3.0

func (*LeaseKeepAliveRequest) ProtoMessage()

func (*LeaseKeepAliveRequest) Reset added in v2.3.0

func (m *LeaseKeepAliveRequest) Reset()

func (*LeaseKeepAliveRequest) Size added in v2.3.0

func (m *LeaseKeepAliveRequest) Size() (n int)

func (*LeaseKeepAliveRequest) String added in v2.3.0

func (m *LeaseKeepAliveRequest) String() string

func (*LeaseKeepAliveRequest) Unmarshal added in v2.3.0

func (m *LeaseKeepAliveRequest) Unmarshal(data []byte) error

type LeaseKeepAliveResponse added in v2.3.0

type LeaseKeepAliveResponse struct {
	Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"`
	ID     int64           `protobuf:"varint,2,opt,name=ID,proto3" json:"ID,omitempty"`
	TTL    int64           `protobuf:"varint,3,opt,name=TTL,proto3" json:"TTL,omitempty"`
}

func (*LeaseKeepAliveResponse) GetHeader added in v2.3.0

func (m *LeaseKeepAliveResponse) GetHeader() *ResponseHeader

func (*LeaseKeepAliveResponse) Marshal added in v2.3.0

func (m *LeaseKeepAliveResponse) Marshal() (data []byte, err error)

func (*LeaseKeepAliveResponse) MarshalTo added in v2.3.0

func (m *LeaseKeepAliveResponse) MarshalTo(data []byte) (int, error)

func (*LeaseKeepAliveResponse) ProtoMessage added in v2.3.0

func (*LeaseKeepAliveResponse) ProtoMessage()

func (*LeaseKeepAliveResponse) Reset added in v2.3.0

func (m *LeaseKeepAliveResponse) Reset()

func (*LeaseKeepAliveResponse) Size added in v2.3.0

func (m *LeaseKeepAliveResponse) Size() (n int)

func (*LeaseKeepAliveResponse) String added in v2.3.0

func (m *LeaseKeepAliveResponse) String() string

func (*LeaseKeepAliveResponse) Unmarshal added in v2.3.0

func (m *LeaseKeepAliveResponse) Unmarshal(data []byte) error

type LeaseRevokeRequest added in v2.3.0

type LeaseRevokeRequest struct {
	ID int64 `protobuf:"varint,1,opt,name=ID,proto3" json:"ID,omitempty"`
}

func (*LeaseRevokeRequest) Marshal added in v2.3.0

func (m *LeaseRevokeRequest) Marshal() (data []byte, err error)

func (*LeaseRevokeRequest) MarshalTo added in v2.3.0

func (m *LeaseRevokeRequest) MarshalTo(data []byte) (int, error)

func (*LeaseRevokeRequest) ProtoMessage added in v2.3.0

func (*LeaseRevokeRequest) ProtoMessage()

func (*LeaseRevokeRequest) Reset added in v2.3.0

func (m *LeaseRevokeRequest) Reset()

func (*LeaseRevokeRequest) Size added in v2.3.0

func (m *LeaseRevokeRequest) Size() (n int)

func (*LeaseRevokeRequest) String added in v2.3.0

func (m *LeaseRevokeRequest) String() string

func (*LeaseRevokeRequest) Unmarshal added in v2.3.0

func (m *LeaseRevokeRequest) Unmarshal(data []byte) error

type LeaseRevokeResponse added in v2.3.0

type LeaseRevokeResponse struct {
	Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"`
}

func (*LeaseRevokeResponse) GetHeader added in v2.3.0

func (m *LeaseRevokeResponse) GetHeader() *ResponseHeader

func (*LeaseRevokeResponse) Marshal added in v2.3.0

func (m *LeaseRevokeResponse) Marshal() (data []byte, err error)

func (*LeaseRevokeResponse) MarshalTo added in v2.3.0

func (m *LeaseRevokeResponse) MarshalTo(data []byte) (int, error)

func (*LeaseRevokeResponse) ProtoMessage added in v2.3.0

func (*LeaseRevokeResponse) ProtoMessage()

func (*LeaseRevokeResponse) Reset added in v2.3.0

func (m *LeaseRevokeResponse) Reset()

func (*LeaseRevokeResponse) Size added in v2.3.0

func (m *LeaseRevokeResponse) Size() (n int)

func (*LeaseRevokeResponse) String added in v2.3.0

func (m *LeaseRevokeResponse) String() string

func (*LeaseRevokeResponse) Unmarshal added in v2.3.0

func (m *LeaseRevokeResponse) Unmarshal(data []byte) error

type LeaseServer added in v2.3.0

type LeaseServer interface {
	// LeaseCreate creates a lease. A lease has a TTL. The lease will expire if the
	// server does not receive a keepAlive within TTL from the lease holder.
	// All keys attached to the lease will be expired and deleted if the lease expires.
	// The key expiration generates an event in event history.
	LeaseCreate(context.Context, *LeaseCreateRequest) (*LeaseCreateResponse, error)
	// LeaseRevoke revokes a lease. All the key attached to the lease will be expired and deleted.
	LeaseRevoke(context.Context, *LeaseRevokeRequest) (*LeaseRevokeResponse, error)
	// KeepAlive keeps the lease alive.
	LeaseKeepAlive(Lease_LeaseKeepAliveServer) error
}

type Lease_LeaseKeepAliveClient added in v2.3.0

type Lease_LeaseKeepAliveClient interface {
	Send(*LeaseKeepAliveRequest) error
	Recv() (*LeaseKeepAliveResponse, error)
	grpc.ClientStream
}

type Lease_LeaseKeepAliveServer added in v2.3.0

type Lease_LeaseKeepAliveServer interface {
	Send(*LeaseKeepAliveResponse) error
	Recv() (*LeaseKeepAliveRequest, error)
	grpc.ServerStream
}

type MaintenanceClient added in v2.3.0

type MaintenanceClient interface {
	// TODO: move Hash from kv to Maintenance
	Defragment(ctx context.Context, in *DefragmentRequest, opts ...grpc.CallOption) (*DefragmentResponse, error)
}

func NewMaintenanceClient added in v2.3.0

func NewMaintenanceClient(cc *grpc.ClientConn) MaintenanceClient

type MaintenanceServer added in v2.3.0

type MaintenanceServer interface {
	// TODO: move Hash from kv to Maintenance
	Defragment(context.Context, *DefragmentRequest) (*DefragmentResponse, error)
}

type Member added in v2.3.0

type Member struct {
	ID uint64 `protobuf:"varint,1,opt,name=ID,proto3" json:"ID,omitempty"`
	// If the member is not started, name will be an empty string.
	Name     string   `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	IsLeader bool     `protobuf:"varint,3,opt,name=IsLeader,proto3" json:"IsLeader,omitempty"`
	PeerURLs []string `protobuf:"bytes,4,rep,name=peerURLs" json:"peerURLs,omitempty"`
	// If the member is not started, client_URLs will be an zero length
	// string array.
	ClientURLs []string `protobuf:"bytes,5,rep,name=clientURLs" json:"clientURLs,omitempty"`
}

func (*Member) Marshal added in v2.3.0

func (m *Member) Marshal() (data []byte, err error)

func (*Member) MarshalTo added in v2.3.0

func (m *Member) MarshalTo(data []byte) (int, error)

func (*Member) ProtoMessage added in v2.3.0

func (*Member) ProtoMessage()

func (*Member) Reset added in v2.3.0

func (m *Member) Reset()

func (*Member) Size added in v2.3.0

func (m *Member) Size() (n int)

func (*Member) String added in v2.3.0

func (m *Member) String() string

func (*Member) Unmarshal added in v2.3.0

func (m *Member) Unmarshal(data []byte) error

type MemberAddRequest added in v2.3.0

type MemberAddRequest struct {
	PeerURLs []string `protobuf:"bytes,1,rep,name=peerURLs" json:"peerURLs,omitempty"`
}

func (*MemberAddRequest) Marshal added in v2.3.0

func (m *MemberAddRequest) Marshal() (data []byte, err error)

func (*MemberAddRequest) MarshalTo added in v2.3.0

func (m *MemberAddRequest) MarshalTo(data []byte) (int, error)

func (*MemberAddRequest) ProtoMessage added in v2.3.0

func (*MemberAddRequest) ProtoMessage()

func (*MemberAddRequest) Reset added in v2.3.0

func (m *MemberAddRequest) Reset()

func (*MemberAddRequest) Size added in v2.3.0

func (m *MemberAddRequest) Size() (n int)

func (*MemberAddRequest) String added in v2.3.0

func (m *MemberAddRequest) String() string

func (*MemberAddRequest) Unmarshal added in v2.3.0

func (m *MemberAddRequest) Unmarshal(data []byte) error

type MemberAddResponse added in v2.3.0

type MemberAddResponse struct {
	Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"`
	Member *Member         `protobuf:"bytes,2,opt,name=member" json:"member,omitempty"`
}

func (*MemberAddResponse) GetHeader added in v2.3.0

func (m *MemberAddResponse) GetHeader() *ResponseHeader

func (*MemberAddResponse) GetMember added in v2.3.0

func (m *MemberAddResponse) GetMember() *Member

func (*MemberAddResponse) Marshal added in v2.3.0

func (m *MemberAddResponse) Marshal() (data []byte, err error)

func (*MemberAddResponse) MarshalTo added in v2.3.0

func (m *MemberAddResponse) MarshalTo(data []byte) (int, error)

func (*MemberAddResponse) ProtoMessage added in v2.3.0

func (*MemberAddResponse) ProtoMessage()

func (*MemberAddResponse) Reset added in v2.3.0

func (m *MemberAddResponse) Reset()

func (*MemberAddResponse) Size added in v2.3.0

func (m *MemberAddResponse) Size() (n int)

func (*MemberAddResponse) String added in v2.3.0

func (m *MemberAddResponse) String() string

func (*MemberAddResponse) Unmarshal added in v2.3.0

func (m *MemberAddResponse) Unmarshal(data []byte) error

type MemberListRequest added in v2.3.0

type MemberListRequest struct {
}

func (*MemberListRequest) Marshal added in v2.3.0

func (m *MemberListRequest) Marshal() (data []byte, err error)

func (*MemberListRequest) MarshalTo added in v2.3.0

func (m *MemberListRequest) MarshalTo(data []byte) (int, error)

func (*MemberListRequest) ProtoMessage added in v2.3.0

func (*MemberListRequest) ProtoMessage()

func (*MemberListRequest) Reset added in v2.3.0

func (m *MemberListRequest) Reset()

func (*MemberListRequest) Size added in v2.3.0

func (m *MemberListRequest) Size() (n int)

func (*MemberListRequest) String added in v2.3.0

func (m *MemberListRequest) String() string

func (*MemberListRequest) Unmarshal added in v2.3.0

func (m *MemberListRequest) Unmarshal(data []byte) error

type MemberListResponse added in v2.3.0

type MemberListResponse struct {
	Header  *ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"`
	Members []*Member       `protobuf:"bytes,2,rep,name=members" json:"members,omitempty"`
}

func (*MemberListResponse) GetHeader added in v2.3.0

func (m *MemberListResponse) GetHeader() *ResponseHeader

func (*MemberListResponse) GetMembers added in v2.3.0

func (m *MemberListResponse) GetMembers() []*Member

func (*MemberListResponse) Marshal added in v2.3.0

func (m *MemberListResponse) Marshal() (data []byte, err error)

func (*MemberListResponse) MarshalTo added in v2.3.0

func (m *MemberListResponse) MarshalTo(data []byte) (int, error)

func (*MemberListResponse) ProtoMessage added in v2.3.0

func (*MemberListResponse) ProtoMessage()

func (*MemberListResponse) Reset added in v2.3.0

func (m *MemberListResponse) Reset()

func (*MemberListResponse) Size added in v2.3.0

func (m *MemberListResponse) Size() (n int)

func (*MemberListResponse) String added in v2.3.0

func (m *MemberListResponse) String() string

func (*MemberListResponse) Unmarshal added in v2.3.0

func (m *MemberListResponse) Unmarshal(data []byte) error

type MemberRemoveRequest added in v2.3.0

type MemberRemoveRequest struct {
	ID uint64 `protobuf:"varint,1,opt,name=ID,proto3" json:"ID,omitempty"`
}

func (*MemberRemoveRequest) Marshal added in v2.3.0

func (m *MemberRemoveRequest) Marshal() (data []byte, err error)

func (*MemberRemoveRequest) MarshalTo added in v2.3.0

func (m *MemberRemoveRequest) MarshalTo(data []byte) (int, error)

func (*MemberRemoveRequest) ProtoMessage added in v2.3.0

func (*MemberRemoveRequest) ProtoMessage()

func (*MemberRemoveRequest) Reset added in v2.3.0

func (m *MemberRemoveRequest) Reset()

func (*MemberRemoveRequest) Size added in v2.3.0

func (m *MemberRemoveRequest) Size() (n int)

func (*MemberRemoveRequest) String added in v2.3.0

func (m *MemberRemoveRequest) String() string

func (*MemberRemoveRequest) Unmarshal added in v2.3.0

func (m *MemberRemoveRequest) Unmarshal(data []byte) error

type MemberRemoveResponse added in v2.3.0

type MemberRemoveResponse struct {
	Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"`
}

func (*MemberRemoveResponse) GetHeader added in v2.3.0

func (m *MemberRemoveResponse) GetHeader() *ResponseHeader

func (*MemberRemoveResponse) Marshal added in v2.3.0

func (m *MemberRemoveResponse) Marshal() (data []byte, err error)

func (*MemberRemoveResponse) MarshalTo added in v2.3.0

func (m *MemberRemoveResponse) MarshalTo(data []byte) (int, error)

func (*MemberRemoveResponse) ProtoMessage added in v2.3.0

func (*MemberRemoveResponse) ProtoMessage()

func (*MemberRemoveResponse) Reset added in v2.3.0

func (m *MemberRemoveResponse) Reset()

func (*MemberRemoveResponse) Size added in v2.3.0

func (m *MemberRemoveResponse) Size() (n int)

func (*MemberRemoveResponse) String added in v2.3.0

func (m *MemberRemoveResponse) String() string

func (*MemberRemoveResponse) Unmarshal added in v2.3.0

func (m *MemberRemoveResponse) Unmarshal(data []byte) error

type MemberUpdateRequest added in v2.3.0

type MemberUpdateRequest struct {
	ID       uint64   `protobuf:"varint,1,opt,name=ID,proto3" json:"ID,omitempty"`
	PeerURLs []string `protobuf:"bytes,2,rep,name=peerURLs" json:"peerURLs,omitempty"`
}

func (*MemberUpdateRequest) Marshal added in v2.3.0

func (m *MemberUpdateRequest) Marshal() (data []byte, err error)

func (*MemberUpdateRequest) MarshalTo added in v2.3.0

func (m *MemberUpdateRequest) MarshalTo(data []byte) (int, error)

func (*MemberUpdateRequest) ProtoMessage added in v2.3.0

func (*MemberUpdateRequest) ProtoMessage()

func (*MemberUpdateRequest) Reset added in v2.3.0

func (m *MemberUpdateRequest) Reset()

func (*MemberUpdateRequest) Size added in v2.3.0

func (m *MemberUpdateRequest) Size() (n int)

func (*MemberUpdateRequest) String added in v2.3.0

func (m *MemberUpdateRequest) String() string

func (*MemberUpdateRequest) Unmarshal added in v2.3.0

func (m *MemberUpdateRequest) Unmarshal(data []byte) error

type MemberUpdateResponse added in v2.3.0

type MemberUpdateResponse struct {
	Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"`
}

func (*MemberUpdateResponse) GetHeader added in v2.3.0

func (m *MemberUpdateResponse) GetHeader() *ResponseHeader

func (*MemberUpdateResponse) Marshal added in v2.3.0

func (m *MemberUpdateResponse) Marshal() (data []byte, err error)

func (*MemberUpdateResponse) MarshalTo added in v2.3.0

func (m *MemberUpdateResponse) MarshalTo(data []byte) (int, error)

func (*MemberUpdateResponse) ProtoMessage added in v2.3.0

func (*MemberUpdateResponse) ProtoMessage()

func (*MemberUpdateResponse) Reset added in v2.3.0

func (m *MemberUpdateResponse) Reset()

func (*MemberUpdateResponse) Size added in v2.3.0

func (m *MemberUpdateResponse) Size() (n int)

func (*MemberUpdateResponse) String added in v2.3.0

func (m *MemberUpdateResponse) String() string

func (*MemberUpdateResponse) Unmarshal added in v2.3.0

func (m *MemberUpdateResponse) Unmarshal(data []byte) error

type Metadata

type Metadata struct {
	NodeID           uint64 `protobuf:"varint,1,opt,name=NodeID" json:"NodeID"`
	ClusterID        uint64 `protobuf:"varint,2,opt,name=ClusterID" json:"ClusterID"`
	XXX_unrecognized []byte `json:"-"`
}

func (*Metadata) Marshal

func (m *Metadata) Marshal() (data []byte, err error)

func (*Metadata) MarshalTo

func (m *Metadata) MarshalTo(data []byte) (int, error)

func (*Metadata) ProtoMessage

func (*Metadata) ProtoMessage()

func (*Metadata) Reset

func (m *Metadata) Reset()

func (*Metadata) Size

func (m *Metadata) Size() (n int)

func (*Metadata) String

func (m *Metadata) String() string

func (*Metadata) Unmarshal

func (m *Metadata) Unmarshal(data []byte) error

type PutRequest added in v2.1.0

type PutRequest struct {
	Key   []byte `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
	Value []byte `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
	Lease int64  `protobuf:"varint,3,opt,name=lease,proto3" json:"lease,omitempty"`
}

func (*PutRequest) Marshal added in v2.1.0

func (m *PutRequest) Marshal() (data []byte, err error)

func (*PutRequest) MarshalTo added in v2.1.0

func (m *PutRequest) MarshalTo(data []byte) (int, error)

func (*PutRequest) ProtoMessage added in v2.1.0

func (*PutRequest) ProtoMessage()

func (*PutRequest) Reset added in v2.1.0

func (m *PutRequest) Reset()

func (*PutRequest) Size added in v2.1.0

func (m *PutRequest) Size() (n int)

func (*PutRequest) String added in v2.1.0

func (m *PutRequest) String() string

func (*PutRequest) Unmarshal added in v2.1.0

func (m *PutRequest) Unmarshal(data []byte) error

type PutResponse added in v2.1.0

type PutResponse struct {
	Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"`
}

func (*PutResponse) GetHeader added in v2.1.0

func (m *PutResponse) GetHeader() *ResponseHeader

func (*PutResponse) Marshal added in v2.1.0

func (m *PutResponse) Marshal() (data []byte, err error)

func (*PutResponse) MarshalTo added in v2.1.0

func (m *PutResponse) MarshalTo(data []byte) (int, error)

func (*PutResponse) ProtoMessage added in v2.1.0

func (*PutResponse) ProtoMessage()

func (*PutResponse) Reset added in v2.1.0

func (m *PutResponse) Reset()

func (*PutResponse) Size added in v2.1.0

func (m *PutResponse) Size() (n int)

func (*PutResponse) String added in v2.1.0

func (m *PutResponse) String() string

func (*PutResponse) Unmarshal added in v2.1.0

func (m *PutResponse) Unmarshal(data []byte) error

type RangeRequest added in v2.1.0

type RangeRequest struct {
	// if the range_end is not given, the request returns the key.
	Key []byte `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
	// if the range_end is given, it gets the keys in range [key, range_end)
	// if range_end is nonempty, otherwise it returns all keys >= key.
	RangeEnd []byte `protobuf:"bytes,2,opt,name=range_end,proto3" json:"range_end,omitempty"`
	// limit the number of keys returned.
	Limit int64 `protobuf:"varint,3,opt,name=limit,proto3" json:"limit,omitempty"`
	// range over the store at the given revision.
	// if revision is less or equal to zero, range over the newest store.
	// if the revision has been compacted, ErrCompaction will be returned in
	// response.
	Revision int64 `protobuf:"varint,4,opt,name=revision,proto3" json:"revision,omitempty"`
	// sort_order is the requested order for returned the results
	SortOrder RangeRequest_SortOrder `protobuf:"varint,5,opt,name=sort_order,proto3,enum=etcdserverpb.RangeRequest_SortOrder" json:"sort_order,omitempty"`
	// sort_target is the kv field to use for sorting
	SortTarget RangeRequest_SortTarget `protobuf:"varint,6,opt,name=sort_target,proto3,enum=etcdserverpb.RangeRequest_SortTarget" json:"sort_target,omitempty"`
	// range request is linearizable by default. Linearizable requests has a higher
	// latency and lower throughput than serializable request.
	// To reduce latency, serializable can be set. If serializable is set, range request
	// will be serializable, but not linearizable with other requests.
	// Serializable range can be served locally without waiting for other nodes in the cluster.
	Serializable bool `protobuf:"varint,7,opt,name=serializable,proto3" json:"serializable,omitempty"`
}

func (*RangeRequest) Marshal added in v2.1.0

func (m *RangeRequest) Marshal() (data []byte, err error)

func (*RangeRequest) MarshalTo added in v2.1.0

func (m *RangeRequest) MarshalTo(data []byte) (int, error)

func (*RangeRequest) ProtoMessage added in v2.1.0

func (*RangeRequest) ProtoMessage()

func (*RangeRequest) Reset added in v2.1.0

func (m *RangeRequest) Reset()

func (*RangeRequest) Size added in v2.1.0

func (m *RangeRequest) Size() (n int)

func (*RangeRequest) String added in v2.1.0

func (m *RangeRequest) String() string

func (*RangeRequest) Unmarshal added in v2.1.0

func (m *RangeRequest) Unmarshal(data []byte) error

type RangeRequest_SortOrder added in v2.3.0

type RangeRequest_SortOrder int32
const (
	RangeRequest_NONE    RangeRequest_SortOrder = 0
	RangeRequest_ASCEND  RangeRequest_SortOrder = 1
	RangeRequest_DESCEND RangeRequest_SortOrder = 2
)

func (RangeRequest_SortOrder) String added in v2.3.0

func (x RangeRequest_SortOrder) String() string

type RangeRequest_SortTarget added in v2.3.0

type RangeRequest_SortTarget int32
const (
	RangeRequest_KEY     RangeRequest_SortTarget = 0
	RangeRequest_VERSION RangeRequest_SortTarget = 1
	RangeRequest_CREATE  RangeRequest_SortTarget = 2
	RangeRequest_MOD     RangeRequest_SortTarget = 3
	RangeRequest_VALUE   RangeRequest_SortTarget = 4
)

func (RangeRequest_SortTarget) String added in v2.3.0

func (x RangeRequest_SortTarget) String() string

type RangeResponse added in v2.1.0

type RangeResponse struct {
	Header *ResponseHeader       `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"`
	Kvs    []*storagepb.KeyValue `protobuf:"bytes,2,rep,name=kvs" json:"kvs,omitempty"`
	// more indicates if there are more keys to return in the requested range.
	More bool `protobuf:"varint,3,opt,name=more,proto3" json:"more,omitempty"`
}

func (*RangeResponse) GetHeader added in v2.1.0

func (m *RangeResponse) GetHeader() *ResponseHeader

func (*RangeResponse) GetKvs added in v2.1.0

func (m *RangeResponse) GetKvs() []*storagepb.KeyValue

func (*RangeResponse) Marshal added in v2.1.0

func (m *RangeResponse) Marshal() (data []byte, err error)

func (*RangeResponse) MarshalTo added in v2.1.0

func (m *RangeResponse) MarshalTo(data []byte) (int, error)

func (*RangeResponse) ProtoMessage added in v2.1.0

func (*RangeResponse) ProtoMessage()

func (*RangeResponse) Reset added in v2.1.0

func (m *RangeResponse) Reset()

func (*RangeResponse) Size added in v2.1.0

func (m *RangeResponse) Size() (n int)

func (*RangeResponse) String added in v2.1.0

func (m *RangeResponse) String() string

func (*RangeResponse) Unmarshal added in v2.1.0

func (m *RangeResponse) Unmarshal(data []byte) error

type Request

type Request struct {
	ID               uint64 `protobuf:"varint,1,opt,name=ID" json:"ID"`
	Method           string `protobuf:"bytes,2,opt,name=Method" json:"Method"`
	Path             string `protobuf:"bytes,3,opt,name=Path" json:"Path"`
	Val              string `protobuf:"bytes,4,opt,name=Val" json:"Val"`
	Dir              bool   `protobuf:"varint,5,opt,name=Dir" json:"Dir"`
	PrevValue        string `protobuf:"bytes,6,opt,name=PrevValue" json:"PrevValue"`
	PrevIndex        uint64 `protobuf:"varint,7,opt,name=PrevIndex" json:"PrevIndex"`
	PrevExist        *bool  `protobuf:"varint,8,opt,name=PrevExist" json:"PrevExist,omitempty"`
	Expiration       int64  `protobuf:"varint,9,opt,name=Expiration" json:"Expiration"`
	Wait             bool   `protobuf:"varint,10,opt,name=Wait" json:"Wait"`
	Since            uint64 `protobuf:"varint,11,opt,name=Since" json:"Since"`
	Recursive        bool   `protobuf:"varint,12,opt,name=Recursive" json:"Recursive"`
	Sorted           bool   `protobuf:"varint,13,opt,name=Sorted" json:"Sorted"`
	Quorum           bool   `protobuf:"varint,14,opt,name=Quorum" json:"Quorum"`
	Time             int64  `protobuf:"varint,15,opt,name=Time" json:"Time"`
	Stream           bool   `protobuf:"varint,16,opt,name=Stream" json:"Stream"`
	Refresh          *bool  `protobuf:"varint,17,opt,name=Refresh" json:"Refresh,omitempty"`
	XXX_unrecognized []byte `json:"-"`
}

func (*Request) Marshal

func (m *Request) Marshal() (data []byte, err error)

func (*Request) MarshalTo

func (m *Request) MarshalTo(data []byte) (int, error)

func (*Request) ProtoMessage

func (*Request) ProtoMessage()

func (*Request) Reset

func (m *Request) Reset()

func (*Request) Size

func (m *Request) Size() (n int)

func (*Request) String

func (m *Request) String() string

func (*Request) Unmarshal

func (m *Request) Unmarshal(data []byte) error

type RequestUnion added in v2.1.0

type RequestUnion struct {
	// Types that are valid to be assigned to Request:
	//	*RequestUnion_RequestRange
	//	*RequestUnion_RequestPut
	//	*RequestUnion_RequestDeleteRange
	Request isRequestUnion_Request `protobuf_oneof:"request"`
}

func (*RequestUnion) GetRequest added in v2.2.5

func (m *RequestUnion) GetRequest() isRequestUnion_Request

func (*RequestUnion) GetRequestDeleteRange added in v2.1.0

func (m *RequestUnion) GetRequestDeleteRange() *DeleteRangeRequest

func (*RequestUnion) GetRequestPut added in v2.1.0

func (m *RequestUnion) GetRequestPut() *PutRequest

func (*RequestUnion) GetRequestRange added in v2.1.0

func (m *RequestUnion) GetRequestRange() *RangeRequest

func (*RequestUnion) Marshal added in v2.1.0

func (m *RequestUnion) Marshal() (data []byte, err error)

func (*RequestUnion) MarshalTo added in v2.1.0

func (m *RequestUnion) MarshalTo(data []byte) (int, error)

func (*RequestUnion) ProtoMessage added in v2.1.0

func (*RequestUnion) ProtoMessage()

func (*RequestUnion) Reset added in v2.1.0

func (m *RequestUnion) Reset()

func (*RequestUnion) Size added in v2.1.0

func (m *RequestUnion) Size() (n int)

func (*RequestUnion) String added in v2.1.0

func (m *RequestUnion) String() string

func (*RequestUnion) Unmarshal added in v2.1.0

func (m *RequestUnion) Unmarshal(data []byte) error

func (*RequestUnion) XXX_OneofFuncs added in v2.2.5

func (*RequestUnion) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), []interface{})

XXX_OneofFuncs is for the internal use of the proto package.

type RequestUnion_RequestDeleteRange added in v2.2.5

type RequestUnion_RequestDeleteRange struct {
	RequestDeleteRange *DeleteRangeRequest `protobuf:"bytes,3,opt,name=request_delete_range,oneof"`
}

func (*RequestUnion_RequestDeleteRange) MarshalTo added in v2.2.5

func (m *RequestUnion_RequestDeleteRange) MarshalTo(data []byte) (int, error)

func (*RequestUnion_RequestDeleteRange) Size added in v2.2.5

func (m *RequestUnion_RequestDeleteRange) Size() (n int)

type RequestUnion_RequestPut added in v2.2.5

type RequestUnion_RequestPut struct {
	RequestPut *PutRequest `protobuf:"bytes,2,opt,name=request_put,oneof"`
}

func (*RequestUnion_RequestPut) MarshalTo added in v2.2.5

func (m *RequestUnion_RequestPut) MarshalTo(data []byte) (int, error)

func (*RequestUnion_RequestPut) Size added in v2.2.5

func (m *RequestUnion_RequestPut) Size() (n int)

type RequestUnion_RequestRange added in v2.2.5

type RequestUnion_RequestRange struct {
	RequestRange *RangeRequest `protobuf:"bytes,1,opt,name=request_range,oneof"`
}

func (*RequestUnion_RequestRange) MarshalTo added in v2.2.5

func (m *RequestUnion_RequestRange) MarshalTo(data []byte) (int, error)

func (*RequestUnion_RequestRange) Size added in v2.2.5

func (m *RequestUnion_RequestRange) Size() (n int)

type ResponseHeader added in v2.1.0

type ResponseHeader struct {
	ClusterId uint64 `protobuf:"varint,1,opt,name=cluster_id,proto3" json:"cluster_id,omitempty"`
	MemberId  uint64 `protobuf:"varint,2,opt,name=member_id,proto3" json:"member_id,omitempty"`
	// revision of the store when the request was applied.
	Revision int64 `protobuf:"varint,3,opt,name=revision,proto3" json:"revision,omitempty"`
	// term of raft when the request was applied.
	RaftTerm uint64 `protobuf:"varint,4,opt,name=raft_term,proto3" json:"raft_term,omitempty"`
}

func (*ResponseHeader) Marshal added in v2.1.0

func (m *ResponseHeader) Marshal() (data []byte, err error)

func (*ResponseHeader) MarshalTo added in v2.1.0

func (m *ResponseHeader) MarshalTo(data []byte) (int, error)

func (*ResponseHeader) ProtoMessage added in v2.1.0

func (*ResponseHeader) ProtoMessage()

func (*ResponseHeader) Reset added in v2.1.0

func (m *ResponseHeader) Reset()

func (*ResponseHeader) Size added in v2.1.0

func (m *ResponseHeader) Size() (n int)

func (*ResponseHeader) String added in v2.1.0

func (m *ResponseHeader) String() string

func (*ResponseHeader) Unmarshal added in v2.1.0

func (m *ResponseHeader) Unmarshal(data []byte) error

type ResponseUnion added in v2.1.0

type ResponseUnion struct {
	// Types that are valid to be assigned to Response:
	//	*ResponseUnion_ResponseRange
	//	*ResponseUnion_ResponsePut
	//	*ResponseUnion_ResponseDeleteRange
	Response isResponseUnion_Response `protobuf_oneof:"response"`
}

func (*ResponseUnion) GetResponse added in v2.2.5

func (m *ResponseUnion) GetResponse() isResponseUnion_Response

func (*ResponseUnion) GetResponseDeleteRange added in v2.1.0

func (m *ResponseUnion) GetResponseDeleteRange() *DeleteRangeResponse

func (*ResponseUnion) GetResponsePut added in v2.1.0

func (m *ResponseUnion) GetResponsePut() *PutResponse

func (*ResponseUnion) GetResponseRange added in v2.2.0

func (m *ResponseUnion) GetResponseRange() *RangeResponse

func (*ResponseUnion) Marshal added in v2.1.0

func (m *ResponseUnion) Marshal() (data []byte, err error)

func (*ResponseUnion) MarshalTo added in v2.1.0

func (m *ResponseUnion) MarshalTo(data []byte) (int, error)

func (*ResponseUnion) ProtoMessage added in v2.1.0

func (*ResponseUnion) ProtoMessage()

func (*ResponseUnion) Reset added in v2.1.0

func (m *ResponseUnion) Reset()

func (*ResponseUnion) Size added in v2.1.0

func (m *ResponseUnion) Size() (n int)

func (*ResponseUnion) String added in v2.1.0

func (m *ResponseUnion) String() string

func (*ResponseUnion) Unmarshal added in v2.1.0

func (m *ResponseUnion) Unmarshal(data []byte) error

func (*ResponseUnion) XXX_OneofFuncs added in v2.2.5

func (*ResponseUnion) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), []interface{})

XXX_OneofFuncs is for the internal use of the proto package.

type ResponseUnion_ResponseDeleteRange added in v2.2.5

type ResponseUnion_ResponseDeleteRange struct {
	ResponseDeleteRange *DeleteRangeResponse `protobuf:"bytes,3,opt,name=response_delete_range,oneof"`
}

func (*ResponseUnion_ResponseDeleteRange) MarshalTo added in v2.2.5

func (m *ResponseUnion_ResponseDeleteRange) MarshalTo(data []byte) (int, error)

func (*ResponseUnion_ResponseDeleteRange) Size added in v2.2.5

func (m *ResponseUnion_ResponseDeleteRange) Size() (n int)

type ResponseUnion_ResponsePut added in v2.2.5

type ResponseUnion_ResponsePut struct {
	ResponsePut *PutResponse `protobuf:"bytes,2,opt,name=response_put,oneof"`
}

func (*ResponseUnion_ResponsePut) MarshalTo added in v2.2.5

func (m *ResponseUnion_ResponsePut) MarshalTo(data []byte) (int, error)

func (*ResponseUnion_ResponsePut) Size added in v2.2.5

func (m *ResponseUnion_ResponsePut) Size() (n int)

type ResponseUnion_ResponseRange added in v2.2.5

type ResponseUnion_ResponseRange struct {
	ResponseRange *RangeResponse `protobuf:"bytes,1,opt,name=response_range,oneof"`
}

func (*ResponseUnion_ResponseRange) MarshalTo added in v2.2.5

func (m *ResponseUnion_ResponseRange) MarshalTo(data []byte) (int, error)

func (*ResponseUnion_ResponseRange) Size added in v2.2.5

func (m *ResponseUnion_ResponseRange) Size() (n int)

type RoleAddRequest added in v2.3.0

type RoleAddRequest struct {
}

func (*RoleAddRequest) Marshal added in v2.3.0

func (m *RoleAddRequest) Marshal() (data []byte, err error)

func (*RoleAddRequest) MarshalTo added in v2.3.0

func (m *RoleAddRequest) MarshalTo(data []byte) (int, error)

func (*RoleAddRequest) ProtoMessage added in v2.3.0

func (*RoleAddRequest) ProtoMessage()

func (*RoleAddRequest) Reset added in v2.3.0

func (m *RoleAddRequest) Reset()

func (*RoleAddRequest) Size added in v2.3.0

func (m *RoleAddRequest) Size() (n int)

func (*RoleAddRequest) String added in v2.3.0

func (m *RoleAddRequest) String() string

func (*RoleAddRequest) Unmarshal added in v2.3.0

func (m *RoleAddRequest) Unmarshal(data []byte) error

type RoleAddResponse added in v2.3.0

type RoleAddResponse struct {
	Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"`
}

func (*RoleAddResponse) GetHeader added in v2.3.0

func (m *RoleAddResponse) GetHeader() *ResponseHeader

func (*RoleAddResponse) Marshal added in v2.3.0

func (m *RoleAddResponse) Marshal() (data []byte, err error)

func (*RoleAddResponse) MarshalTo added in v2.3.0

func (m *RoleAddResponse) MarshalTo(data []byte) (int, error)

func (*RoleAddResponse) ProtoMessage added in v2.3.0

func (*RoleAddResponse) ProtoMessage()

func (*RoleAddResponse) Reset added in v2.3.0

func (m *RoleAddResponse) Reset()

func (*RoleAddResponse) Size added in v2.3.0

func (m *RoleAddResponse) Size() (n int)

func (*RoleAddResponse) String added in v2.3.0

func (m *RoleAddResponse) String() string

func (*RoleAddResponse) Unmarshal added in v2.3.0

func (m *RoleAddResponse) Unmarshal(data []byte) error

type RoleDeleteRequest added in v2.3.0

type RoleDeleteRequest struct {
}

func (*RoleDeleteRequest) Marshal added in v2.3.0

func (m *RoleDeleteRequest) Marshal() (data []byte, err error)

func (*RoleDeleteRequest) MarshalTo added in v2.3.0

func (m *RoleDeleteRequest) MarshalTo(data []byte) (int, error)

func (*RoleDeleteRequest) ProtoMessage added in v2.3.0

func (*RoleDeleteRequest) ProtoMessage()

func (*RoleDeleteRequest) Reset added in v2.3.0

func (m *RoleDeleteRequest) Reset()

func (*RoleDeleteRequest) Size added in v2.3.0

func (m *RoleDeleteRequest) Size() (n int)

func (*RoleDeleteRequest) String added in v2.3.0

func (m *RoleDeleteRequest) String() string

func (*RoleDeleteRequest) Unmarshal added in v2.3.0

func (m *RoleDeleteRequest) Unmarshal(data []byte) error

type RoleDeleteResponse added in v2.3.0

type RoleDeleteResponse struct {
	Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"`
}

func (*RoleDeleteResponse) GetHeader added in v2.3.0

func (m *RoleDeleteResponse) GetHeader() *ResponseHeader

func (*RoleDeleteResponse) Marshal added in v2.3.0

func (m *RoleDeleteResponse) Marshal() (data []byte, err error)

func (*RoleDeleteResponse) MarshalTo added in v2.3.0

func (m *RoleDeleteResponse) MarshalTo(data []byte) (int, error)

func (*RoleDeleteResponse) ProtoMessage added in v2.3.0

func (*RoleDeleteResponse) ProtoMessage()

func (*RoleDeleteResponse) Reset added in v2.3.0

func (m *RoleDeleteResponse) Reset()

func (*RoleDeleteResponse) Size added in v2.3.0

func (m *RoleDeleteResponse) Size() (n int)

func (*RoleDeleteResponse) String added in v2.3.0

func (m *RoleDeleteResponse) String() string

func (*RoleDeleteResponse) Unmarshal added in v2.3.0

func (m *RoleDeleteResponse) Unmarshal(data []byte) error

type RoleGetRequest added in v2.3.0

type RoleGetRequest struct {
}

func (*RoleGetRequest) Marshal added in v2.3.0

func (m *RoleGetRequest) Marshal() (data []byte, err error)

func (*RoleGetRequest) MarshalTo added in v2.3.0

func (m *RoleGetRequest) MarshalTo(data []byte) (int, error)

func (*RoleGetRequest) ProtoMessage added in v2.3.0

func (*RoleGetRequest) ProtoMessage()

func (*RoleGetRequest) Reset added in v2.3.0

func (m *RoleGetRequest) Reset()

func (*RoleGetRequest) Size added in v2.3.0

func (m *RoleGetRequest) Size() (n int)

func (*RoleGetRequest) String added in v2.3.0

func (m *RoleGetRequest) String() string

func (*RoleGetRequest) Unmarshal added in v2.3.0

func (m *RoleGetRequest) Unmarshal(data []byte) error

type RoleGetResponse added in v2.3.0

type RoleGetResponse struct {
	Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"`
}

func (*RoleGetResponse) GetHeader added in v2.3.0

func (m *RoleGetResponse) GetHeader() *ResponseHeader

func (*RoleGetResponse) Marshal added in v2.3.0

func (m *RoleGetResponse) Marshal() (data []byte, err error)

func (*RoleGetResponse) MarshalTo added in v2.3.0

func (m *RoleGetResponse) MarshalTo(data []byte) (int, error)

func (*RoleGetResponse) ProtoMessage added in v2.3.0

func (*RoleGetResponse) ProtoMessage()

func (*RoleGetResponse) Reset added in v2.3.0

func (m *RoleGetResponse) Reset()

func (*RoleGetResponse) Size added in v2.3.0

func (m *RoleGetResponse) Size() (n int)

func (*RoleGetResponse) String added in v2.3.0

func (m *RoleGetResponse) String() string

func (*RoleGetResponse) Unmarshal added in v2.3.0

func (m *RoleGetResponse) Unmarshal(data []byte) error

type RoleGrantRequest added in v2.3.0

type RoleGrantRequest struct {
}

func (*RoleGrantRequest) Marshal added in v2.3.0

func (m *RoleGrantRequest) Marshal() (data []byte, err error)

func (*RoleGrantRequest) MarshalTo added in v2.3.0

func (m *RoleGrantRequest) MarshalTo(data []byte) (int, error)

func (*RoleGrantRequest) ProtoMessage added in v2.3.0

func (*RoleGrantRequest) ProtoMessage()

func (*RoleGrantRequest) Reset added in v2.3.0

func (m *RoleGrantRequest) Reset()

func (*RoleGrantRequest) Size added in v2.3.0

func (m *RoleGrantRequest) Size() (n int)

func (*RoleGrantRequest) String added in v2.3.0

func (m *RoleGrantRequest) String() string

func (*RoleGrantRequest) Unmarshal added in v2.3.0

func (m *RoleGrantRequest) Unmarshal(data []byte) error

type RoleGrantResponse added in v2.3.0

type RoleGrantResponse struct {
	Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"`
}

func (*RoleGrantResponse) GetHeader added in v2.3.0

func (m *RoleGrantResponse) GetHeader() *ResponseHeader

func (*RoleGrantResponse) Marshal added in v2.3.0

func (m *RoleGrantResponse) Marshal() (data []byte, err error)

func (*RoleGrantResponse) MarshalTo added in v2.3.0

func (m *RoleGrantResponse) MarshalTo(data []byte) (int, error)

func (*RoleGrantResponse) ProtoMessage added in v2.3.0

func (*RoleGrantResponse) ProtoMessage()

func (*RoleGrantResponse) Reset added in v2.3.0

func (m *RoleGrantResponse) Reset()

func (*RoleGrantResponse) Size added in v2.3.0

func (m *RoleGrantResponse) Size() (n int)

func (*RoleGrantResponse) String added in v2.3.0

func (m *RoleGrantResponse) String() string

func (*RoleGrantResponse) Unmarshal added in v2.3.0

func (m *RoleGrantResponse) Unmarshal(data []byte) error

type RoleRevokeRequest added in v2.3.0

type RoleRevokeRequest struct {
}

func (*RoleRevokeRequest) Marshal added in v2.3.0

func (m *RoleRevokeRequest) Marshal() (data []byte, err error)

func (*RoleRevokeRequest) MarshalTo added in v2.3.0

func (m *RoleRevokeRequest) MarshalTo(data []byte) (int, error)

func (*RoleRevokeRequest) ProtoMessage added in v2.3.0

func (*RoleRevokeRequest) ProtoMessage()

func (*RoleRevokeRequest) Reset added in v2.3.0

func (m *RoleRevokeRequest) Reset()

func (*RoleRevokeRequest) Size added in v2.3.0

func (m *RoleRevokeRequest) Size() (n int)

func (*RoleRevokeRequest) String added in v2.3.0

func (m *RoleRevokeRequest) String() string

func (*RoleRevokeRequest) Unmarshal added in v2.3.0

func (m *RoleRevokeRequest) Unmarshal(data []byte) error

type RoleRevokeResponse added in v2.3.0

type RoleRevokeResponse struct {
	Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"`
}

func (*RoleRevokeResponse) GetHeader added in v2.3.0

func (m *RoleRevokeResponse) GetHeader() *ResponseHeader

func (*RoleRevokeResponse) Marshal added in v2.3.0

func (m *RoleRevokeResponse) Marshal() (data []byte, err error)

func (*RoleRevokeResponse) MarshalTo added in v2.3.0

func (m *RoleRevokeResponse) MarshalTo(data []byte) (int, error)

func (*RoleRevokeResponse) ProtoMessage added in v2.3.0

func (*RoleRevokeResponse) ProtoMessage()

func (*RoleRevokeResponse) Reset added in v2.3.0

func (m *RoleRevokeResponse) Reset()

func (*RoleRevokeResponse) Size added in v2.3.0

func (m *RoleRevokeResponse) Size() (n int)

func (*RoleRevokeResponse) String added in v2.3.0

func (m *RoleRevokeResponse) String() string

func (*RoleRevokeResponse) Unmarshal added in v2.3.0

func (m *RoleRevokeResponse) Unmarshal(data []byte) error

type TxnRequest added in v2.2.0

type TxnRequest struct {
	Compare []*Compare      `protobuf:"bytes,1,rep,name=compare" json:"compare,omitempty"`
	Success []*RequestUnion `protobuf:"bytes,2,rep,name=success" json:"success,omitempty"`
	Failure []*RequestUnion `protobuf:"bytes,3,rep,name=failure" json:"failure,omitempty"`
}

From google paxosdb paper: Our implementation hinges around a powerful primitive which we call MultiOp. All other database operations except for iteration are implemented as a single call to MultiOp. A MultiOp is applied atomically and consists of three components: 1. A list of tests called guard. Each test in guard checks a single entry in the database. It may check for the absence or presence of a value, or compare with a given value. Two different tests in the guard may apply to the same or different entries in the database. All tests in the guard are applied and MultiOp returns the results. If all tests are true, MultiOp executes t op (see item 2 below), otherwise it executes f op (see item 3 below). 2. A list of database operations called t op. Each operation in the list is either an insert, delete, or lookup operation, and applies to a single database entry. Two different operations in the list may apply to the same or different entries in the database. These operations are executed if guard evaluates to true. 3. A list of database operations called f op. Like t op, but executed if guard evaluates to false.

func (*TxnRequest) GetCompare added in v2.2.0

func (m *TxnRequest) GetCompare() []*Compare

func (*TxnRequest) GetFailure added in v2.2.0

func (m *TxnRequest) GetFailure() []*RequestUnion

func (*TxnRequest) GetSuccess added in v2.2.0

func (m *TxnRequest) GetSuccess() []*RequestUnion

func (*TxnRequest) Marshal added in v2.2.0

func (m *TxnRequest) Marshal() (data []byte, err error)

func (*TxnRequest) MarshalTo added in v2.2.0

func (m *TxnRequest) MarshalTo(data []byte) (int, error)

func (*TxnRequest) ProtoMessage added in v2.2.0

func (*TxnRequest) ProtoMessage()

func (*TxnRequest) Reset added in v2.2.0

func (m *TxnRequest) Reset()

func (*TxnRequest) Size added in v2.2.0

func (m *TxnRequest) Size() (n int)

func (*TxnRequest) String added in v2.2.0

func (m *TxnRequest) String() string

func (*TxnRequest) Unmarshal added in v2.2.0

func (m *TxnRequest) Unmarshal(data []byte) error

type TxnResponse added in v2.2.0

type TxnResponse struct {
	Header    *ResponseHeader  `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"`
	Succeeded bool             `protobuf:"varint,2,opt,name=succeeded,proto3" json:"succeeded,omitempty"`
	Responses []*ResponseUnion `protobuf:"bytes,3,rep,name=responses" json:"responses,omitempty"`
}

func (*TxnResponse) GetHeader added in v2.2.0

func (m *TxnResponse) GetHeader() *ResponseHeader

func (*TxnResponse) GetResponses added in v2.2.0

func (m *TxnResponse) GetResponses() []*ResponseUnion

func (*TxnResponse) Marshal added in v2.2.0

func (m *TxnResponse) Marshal() (data []byte, err error)

func (*TxnResponse) MarshalTo added in v2.2.0

func (m *TxnResponse) MarshalTo(data []byte) (int, error)

func (*TxnResponse) ProtoMessage added in v2.2.0

func (*TxnResponse) ProtoMessage()

func (*TxnResponse) Reset added in v2.2.0

func (m *TxnResponse) Reset()

func (*TxnResponse) Size added in v2.2.0

func (m *TxnResponse) Size() (n int)

func (*TxnResponse) String added in v2.2.0

func (m *TxnResponse) String() string

func (*TxnResponse) Unmarshal added in v2.2.0

func (m *TxnResponse) Unmarshal(data []byte) error

type UserAddRequest added in v2.3.0

type UserAddRequest struct {
}

func (*UserAddRequest) Marshal added in v2.3.0

func (m *UserAddRequest) Marshal() (data []byte, err error)

func (*UserAddRequest) MarshalTo added in v2.3.0

func (m *UserAddRequest) MarshalTo(data []byte) (int, error)

func (*UserAddRequest) ProtoMessage added in v2.3.0

func (*UserAddRequest) ProtoMessage()

func (*UserAddRequest) Reset added in v2.3.0

func (m *UserAddRequest) Reset()

func (*UserAddRequest) Size added in v2.3.0

func (m *UserAddRequest) Size() (n int)

func (*UserAddRequest) String added in v2.3.0

func (m *UserAddRequest) String() string

func (*UserAddRequest) Unmarshal added in v2.3.0

func (m *UserAddRequest) Unmarshal(data []byte) error

type UserAddResponse added in v2.3.0

type UserAddResponse struct {
	Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"`
}

func (*UserAddResponse) GetHeader added in v2.3.0

func (m *UserAddResponse) GetHeader() *ResponseHeader

func (*UserAddResponse) Marshal added in v2.3.0

func (m *UserAddResponse) Marshal() (data []byte, err error)

func (*UserAddResponse) MarshalTo added in v2.3.0

func (m *UserAddResponse) MarshalTo(data []byte) (int, error)

func (*UserAddResponse) ProtoMessage added in v2.3.0

func (*UserAddResponse) ProtoMessage()

func (*UserAddResponse) Reset added in v2.3.0

func (m *UserAddResponse) Reset()

func (*UserAddResponse) Size added in v2.3.0

func (m *UserAddResponse) Size() (n int)

func (*UserAddResponse) String added in v2.3.0

func (m *UserAddResponse) String() string

func (*UserAddResponse) Unmarshal added in v2.3.0

func (m *UserAddResponse) Unmarshal(data []byte) error

type UserChangePasswordRequest added in v2.3.0

type UserChangePasswordRequest struct {
}

func (*UserChangePasswordRequest) Marshal added in v2.3.0

func (m *UserChangePasswordRequest) Marshal() (data []byte, err error)

func (*UserChangePasswordRequest) MarshalTo added in v2.3.0

func (m *UserChangePasswordRequest) MarshalTo(data []byte) (int, error)

func (*UserChangePasswordRequest) ProtoMessage added in v2.3.0

func (*UserChangePasswordRequest) ProtoMessage()

func (*UserChangePasswordRequest) Reset added in v2.3.0

func (m *UserChangePasswordRequest) Reset()

func (*UserChangePasswordRequest) Size added in v2.3.0

func (m *UserChangePasswordRequest) Size() (n int)

func (*UserChangePasswordRequest) String added in v2.3.0

func (m *UserChangePasswordRequest) String() string

func (*UserChangePasswordRequest) Unmarshal added in v2.3.0

func (m *UserChangePasswordRequest) Unmarshal(data []byte) error

type UserChangePasswordResponse added in v2.3.0

type UserChangePasswordResponse struct {
	Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"`
}

func (*UserChangePasswordResponse) GetHeader added in v2.3.0

func (*UserChangePasswordResponse) Marshal added in v2.3.0

func (m *UserChangePasswordResponse) Marshal() (data []byte, err error)

func (*UserChangePasswordResponse) MarshalTo added in v2.3.0

func (m *UserChangePasswordResponse) MarshalTo(data []byte) (int, error)

func (*UserChangePasswordResponse) ProtoMessage added in v2.3.0

func (*UserChangePasswordResponse) ProtoMessage()

func (*UserChangePasswordResponse) Reset added in v2.3.0

func (m *UserChangePasswordResponse) Reset()

func (*UserChangePasswordResponse) Size added in v2.3.0

func (m *UserChangePasswordResponse) Size() (n int)

func (*UserChangePasswordResponse) String added in v2.3.0

func (m *UserChangePasswordResponse) String() string

func (*UserChangePasswordResponse) Unmarshal added in v2.3.0

func (m *UserChangePasswordResponse) Unmarshal(data []byte) error

type UserDeleteRequest added in v2.3.0

type UserDeleteRequest struct {
}

func (*UserDeleteRequest) Marshal added in v2.3.0

func (m *UserDeleteRequest) Marshal() (data []byte, err error)

func (*UserDeleteRequest) MarshalTo added in v2.3.0

func (m *UserDeleteRequest) MarshalTo(data []byte) (int, error)

func (*UserDeleteRequest) ProtoMessage added in v2.3.0

func (*UserDeleteRequest) ProtoMessage()

func (*UserDeleteRequest) Reset added in v2.3.0

func (m *UserDeleteRequest) Reset()

func (*UserDeleteRequest) Size added in v2.3.0

func (m *UserDeleteRequest) Size() (n int)

func (*UserDeleteRequest) String added in v2.3.0

func (m *UserDeleteRequest) String() string

func (*UserDeleteRequest) Unmarshal added in v2.3.0

func (m *UserDeleteRequest) Unmarshal(data []byte) error

type UserDeleteResponse added in v2.3.0

type UserDeleteResponse struct {
	Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"`
}

func (*UserDeleteResponse) GetHeader added in v2.3.0

func (m *UserDeleteResponse) GetHeader() *ResponseHeader

func (*UserDeleteResponse) Marshal added in v2.3.0

func (m *UserDeleteResponse) Marshal() (data []byte, err error)

func (*UserDeleteResponse) MarshalTo added in v2.3.0

func (m *UserDeleteResponse) MarshalTo(data []byte) (int, error)

func (*UserDeleteResponse) ProtoMessage added in v2.3.0

func (*UserDeleteResponse) ProtoMessage()

func (*UserDeleteResponse) Reset added in v2.3.0

func (m *UserDeleteResponse) Reset()

func (*UserDeleteResponse) Size added in v2.3.0

func (m *UserDeleteResponse) Size() (n int)

func (*UserDeleteResponse) String added in v2.3.0

func (m *UserDeleteResponse) String() string

func (*UserDeleteResponse) Unmarshal added in v2.3.0

func (m *UserDeleteResponse) Unmarshal(data []byte) error

type UserGetRequest added in v2.3.0

type UserGetRequest struct {
}

func (*UserGetRequest) Marshal added in v2.3.0

func (m *UserGetRequest) Marshal() (data []byte, err error)

func (*UserGetRequest) MarshalTo added in v2.3.0

func (m *UserGetRequest) MarshalTo(data []byte) (int, error)

func (*UserGetRequest) ProtoMessage added in v2.3.0

func (*UserGetRequest) ProtoMessage()

func (*UserGetRequest) Reset added in v2.3.0

func (m *UserGetRequest) Reset()

func (*UserGetRequest) Size added in v2.3.0

func (m *UserGetRequest) Size() (n int)

func (*UserGetRequest) String added in v2.3.0

func (m *UserGetRequest) String() string

func (*UserGetRequest) Unmarshal added in v2.3.0

func (m *UserGetRequest) Unmarshal(data []byte) error

type UserGetResponse added in v2.3.0

type UserGetResponse struct {
	Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"`
}

func (*UserGetResponse) GetHeader added in v2.3.0

func (m *UserGetResponse) GetHeader() *ResponseHeader

func (*UserGetResponse) Marshal added in v2.3.0

func (m *UserGetResponse) Marshal() (data []byte, err error)

func (*UserGetResponse) MarshalTo added in v2.3.0

func (m *UserGetResponse) MarshalTo(data []byte) (int, error)

func (*UserGetResponse) ProtoMessage added in v2.3.0

func (*UserGetResponse) ProtoMessage()

func (*UserGetResponse) Reset added in v2.3.0

func (m *UserGetResponse) Reset()

func (*UserGetResponse) Size added in v2.3.0

func (m *UserGetResponse) Size() (n int)

func (*UserGetResponse) String added in v2.3.0

func (m *UserGetResponse) String() string

func (*UserGetResponse) Unmarshal added in v2.3.0

func (m *UserGetResponse) Unmarshal(data []byte) error

type UserGrantRequest added in v2.3.0

type UserGrantRequest struct {
}

func (*UserGrantRequest) Marshal added in v2.3.0

func (m *UserGrantRequest) Marshal() (data []byte, err error)

func (*UserGrantRequest) MarshalTo added in v2.3.0

func (m *UserGrantRequest) MarshalTo(data []byte) (int, error)

func (*UserGrantRequest) ProtoMessage added in v2.3.0

func (*UserGrantRequest) ProtoMessage()

func (*UserGrantRequest) Reset added in v2.3.0

func (m *UserGrantRequest) Reset()

func (*UserGrantRequest) Size added in v2.3.0

func (m *UserGrantRequest) Size() (n int)

func (*UserGrantRequest) String added in v2.3.0

func (m *UserGrantRequest) String() string

func (*UserGrantRequest) Unmarshal added in v2.3.0

func (m *UserGrantRequest) Unmarshal(data []byte) error

type UserGrantResponse added in v2.3.0

type UserGrantResponse struct {
	Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"`
}

func (*UserGrantResponse) GetHeader added in v2.3.0

func (m *UserGrantResponse) GetHeader() *ResponseHeader

func (*UserGrantResponse) Marshal added in v2.3.0

func (m *UserGrantResponse) Marshal() (data []byte, err error)

func (*UserGrantResponse) MarshalTo added in v2.3.0

func (m *UserGrantResponse) MarshalTo(data []byte) (int, error)

func (*UserGrantResponse) ProtoMessage added in v2.3.0

func (*UserGrantResponse) ProtoMessage()

func (*UserGrantResponse) Reset added in v2.3.0

func (m *UserGrantResponse) Reset()

func (*UserGrantResponse) Size added in v2.3.0

func (m *UserGrantResponse) Size() (n int)

func (*UserGrantResponse) String added in v2.3.0

func (m *UserGrantResponse) String() string

func (*UserGrantResponse) Unmarshal added in v2.3.0

func (m *UserGrantResponse) Unmarshal(data []byte) error

type UserRevokeRequest added in v2.3.0

type UserRevokeRequest struct {
}

func (*UserRevokeRequest) Marshal added in v2.3.0

func (m *UserRevokeRequest) Marshal() (data []byte, err error)

func (*UserRevokeRequest) MarshalTo added in v2.3.0

func (m *UserRevokeRequest) MarshalTo(data []byte) (int, error)

func (*UserRevokeRequest) ProtoMessage added in v2.3.0

func (*UserRevokeRequest) ProtoMessage()

func (*UserRevokeRequest) Reset added in v2.3.0

func (m *UserRevokeRequest) Reset()

func (*UserRevokeRequest) Size added in v2.3.0

func (m *UserRevokeRequest) Size() (n int)

func (*UserRevokeRequest) String added in v2.3.0

func (m *UserRevokeRequest) String() string

func (*UserRevokeRequest) Unmarshal added in v2.3.0

func (m *UserRevokeRequest) Unmarshal(data []byte) error

type UserRevokeResponse added in v2.3.0

type UserRevokeResponse struct {
	Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"`
}

func (*UserRevokeResponse) GetHeader added in v2.3.0

func (m *UserRevokeResponse) GetHeader() *ResponseHeader

func (*UserRevokeResponse) Marshal added in v2.3.0

func (m *UserRevokeResponse) Marshal() (data []byte, err error)

func (*UserRevokeResponse) MarshalTo added in v2.3.0

func (m *UserRevokeResponse) MarshalTo(data []byte) (int, error)

func (*UserRevokeResponse) ProtoMessage added in v2.3.0

func (*UserRevokeResponse) ProtoMessage()

func (*UserRevokeResponse) Reset added in v2.3.0

func (m *UserRevokeResponse) Reset()

func (*UserRevokeResponse) Size added in v2.3.0

func (m *UserRevokeResponse) Size() (n int)

func (*UserRevokeResponse) String added in v2.3.0

func (m *UserRevokeResponse) String() string

func (*UserRevokeResponse) Unmarshal added in v2.3.0

func (m *UserRevokeResponse) Unmarshal(data []byte) error

type WatchCancelRequest added in v2.3.0

type WatchCancelRequest struct {
	WatchId int64 `protobuf:"varint,1,opt,name=watch_id,proto3" json:"watch_id,omitempty"`
}

func (*WatchCancelRequest) Marshal added in v2.3.0

func (m *WatchCancelRequest) Marshal() (data []byte, err error)

func (*WatchCancelRequest) MarshalTo added in v2.3.0

func (m *WatchCancelRequest) MarshalTo(data []byte) (int, error)

func (*WatchCancelRequest) ProtoMessage added in v2.3.0

func (*WatchCancelRequest) ProtoMessage()

func (*WatchCancelRequest) Reset added in v2.3.0

func (m *WatchCancelRequest) Reset()

func (*WatchCancelRequest) Size added in v2.3.0

func (m *WatchCancelRequest) Size() (n int)

func (*WatchCancelRequest) String added in v2.3.0

func (m *WatchCancelRequest) String() string

func (*WatchCancelRequest) Unmarshal added in v2.3.0

func (m *WatchCancelRequest) Unmarshal(data []byte) error

type WatchClient added in v2.3.0

type WatchClient interface {
	// Watch watches the events happening or happened. Both input and output
	// are stream. One watch rpc can watch for multiple keys or prefixs and
	// get a stream of events. The whole events history can be watched unless
	// compacted.
	Watch(ctx context.Context, opts ...grpc.CallOption) (Watch_WatchClient, error)
}

func NewWatchClient added in v2.3.0

func NewWatchClient(cc *grpc.ClientConn) WatchClient

type WatchCreateRequest added in v2.3.0

type WatchCreateRequest struct {
	// the key to be watched
	Key []byte `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
	// if the range_end is given, keys in [key, range_end) are watched
	// NOTE: only range_end == prefixEnd(key) is accepted now
	RangeEnd []byte `protobuf:"bytes,2,opt,name=range_end,proto3" json:"range_end,omitempty"`
	// start_revision is an optional revision (including) to watch from. No start_revision is "now".
	StartRevision int64 `protobuf:"varint,3,opt,name=start_revision,proto3" json:"start_revision,omitempty"`
	// if progress_notify is set, etcd server sends WatchResponse with empty events to the
	// created watcher when there are no recent events. It is useful when clients want always to be
	// able to recover a disconnected watcher from a recent known revision.
	// etcdsever can decide how long it should send a notification based on current load.
	ProgressNotify bool `protobuf:"varint,4,opt,name=progress_notify,proto3" json:"progress_notify,omitempty"`
}

func (*WatchCreateRequest) Marshal added in v2.3.0

func (m *WatchCreateRequest) Marshal() (data []byte, err error)

func (*WatchCreateRequest) MarshalTo added in v2.3.0

func (m *WatchCreateRequest) MarshalTo(data []byte) (int, error)

func (*WatchCreateRequest) ProtoMessage added in v2.3.0

func (*WatchCreateRequest) ProtoMessage()

func (*WatchCreateRequest) Reset added in v2.3.0

func (m *WatchCreateRequest) Reset()

func (*WatchCreateRequest) Size added in v2.3.0

func (m *WatchCreateRequest) Size() (n int)

func (*WatchCreateRequest) String added in v2.3.0

func (m *WatchCreateRequest) String() string

func (*WatchCreateRequest) Unmarshal added in v2.3.0

func (m *WatchCreateRequest) Unmarshal(data []byte) error

type WatchRequest added in v2.3.0

type WatchRequest struct {
	// Types that are valid to be assigned to RequestUnion:
	//	*WatchRequest_CreateRequest
	//	*WatchRequest_CancelRequest
	RequestUnion isWatchRequest_RequestUnion `protobuf_oneof:"request_union"`
}

func (*WatchRequest) GetCancelRequest added in v2.3.0

func (m *WatchRequest) GetCancelRequest() *WatchCancelRequest

func (*WatchRequest) GetCreateRequest added in v2.3.0

func (m *WatchRequest) GetCreateRequest() *WatchCreateRequest

func (*WatchRequest) GetRequestUnion added in v2.3.0

func (m *WatchRequest) GetRequestUnion() isWatchRequest_RequestUnion

func (*WatchRequest) Marshal added in v2.3.0

func (m *WatchRequest) Marshal() (data []byte, err error)

func (*WatchRequest) MarshalTo added in v2.3.0

func (m *WatchRequest) MarshalTo(data []byte) (int, error)

func (*WatchRequest) ProtoMessage added in v2.3.0

func (*WatchRequest) ProtoMessage()

func (*WatchRequest) Reset added in v2.3.0

func (m *WatchRequest) Reset()

func (*WatchRequest) Size added in v2.3.0

func (m *WatchRequest) Size() (n int)

func (*WatchRequest) String added in v2.3.0

func (m *WatchRequest) String() string

func (*WatchRequest) Unmarshal added in v2.3.0

func (m *WatchRequest) Unmarshal(data []byte) error

func (*WatchRequest) XXX_OneofFuncs added in v2.3.0

func (*WatchRequest) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), []interface{})

XXX_OneofFuncs is for the internal use of the proto package.

type WatchRequest_CancelRequest added in v2.3.0

type WatchRequest_CancelRequest struct {
	CancelRequest *WatchCancelRequest `protobuf:"bytes,2,opt,name=cancel_request,oneof"`
}

func (*WatchRequest_CancelRequest) MarshalTo added in v2.3.0

func (m *WatchRequest_CancelRequest) MarshalTo(data []byte) (int, error)

func (*WatchRequest_CancelRequest) Size added in v2.3.0

func (m *WatchRequest_CancelRequest) Size() (n int)

type WatchRequest_CreateRequest added in v2.3.0

type WatchRequest_CreateRequest struct {
	CreateRequest *WatchCreateRequest `protobuf:"bytes,1,opt,name=create_request,oneof"`
}

func (*WatchRequest_CreateRequest) MarshalTo added in v2.3.0

func (m *WatchRequest_CreateRequest) MarshalTo(data []byte) (int, error)

func (*WatchRequest_CreateRequest) Size added in v2.3.0

func (m *WatchRequest_CreateRequest) Size() (n int)

type WatchResponse added in v2.3.0

type WatchResponse struct {
	Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"`
	// watch_id is the ID of the watching the response sent to.
	WatchId int64 `protobuf:"varint,2,opt,name=watch_id,proto3" json:"watch_id,omitempty"`
	// If the response is for a create watch request, created is set to true.
	// Client should record the watch_id and prepare for receiving events for
	// that watching from the same stream.
	// All events sent to the created watching will attach with the same watch_id.
	Created bool `protobuf:"varint,3,opt,name=created,proto3" json:"created,omitempty"`
	// If the response is for a cancel watch request, cancel is set to true.
	// No further events will be sent to the canceled watching.
	Canceled bool `protobuf:"varint,4,opt,name=canceled,proto3" json:"canceled,omitempty"`
	// CompactRevision is set to the minimum index if a watching tries to watch
	// at a compacted index.
	//
	// This happens when creating a watching at a compacted revision or the watching cannot
	// catch up with the progress of the KV.
	//
	// Client should treat the watching as canceled and should not try to create any
	// watching with same start_revision again.
	CompactRevision int64              `protobuf:"varint,5,opt,name=compact_revision,proto3" json:"compact_revision,omitempty"`
	Events          []*storagepb.Event `protobuf:"bytes,11,rep,name=events" json:"events,omitempty"`
}

func (*WatchResponse) GetEvents added in v2.3.0

func (m *WatchResponse) GetEvents() []*storagepb.Event

func (*WatchResponse) GetHeader added in v2.3.0

func (m *WatchResponse) GetHeader() *ResponseHeader

func (*WatchResponse) Marshal added in v2.3.0

func (m *WatchResponse) Marshal() (data []byte, err error)

func (*WatchResponse) MarshalTo added in v2.3.0

func (m *WatchResponse) MarshalTo(data []byte) (int, error)

func (*WatchResponse) ProtoMessage added in v2.3.0

func (*WatchResponse) ProtoMessage()

func (*WatchResponse) Reset added in v2.3.0

func (m *WatchResponse) Reset()

func (*WatchResponse) Size added in v2.3.0

func (m *WatchResponse) Size() (n int)

func (*WatchResponse) String added in v2.3.0

func (m *WatchResponse) String() string

func (*WatchResponse) Unmarshal added in v2.3.0

func (m *WatchResponse) Unmarshal(data []byte) error

type WatchServer added in v2.3.0

type WatchServer interface {
	// Watch watches the events happening or happened. Both input and output
	// are stream. One watch rpc can watch for multiple keys or prefixs and
	// get a stream of events. The whole events history can be watched unless
	// compacted.
	Watch(Watch_WatchServer) error
}

type Watch_WatchClient added in v2.3.0

type Watch_WatchClient interface {
	Send(*WatchRequest) error
	Recv() (*WatchResponse, error)
	grpc.ClientStream
}

type Watch_WatchServer added in v2.3.0

type Watch_WatchServer interface {
	Send(*WatchResponse) error
	Recv() (*WatchRequest, error)
	grpc.ServerStream
}

Jump to

Keyboard shortcuts

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