model

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: May 20, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Convert

func Convert[CALL any, PROTO any](calls []CALL, toProto func(CALL) PROTO) []PROTO

Types

type DeleteCall

type DeleteCall struct {
	Key               string
	ExpectedVersionId *int64
	Callback          func(*proto.DeleteResponse, error)
}

func (DeleteCall) ToProto

func (r DeleteCall) ToProto() *proto.DeleteRequest

type DeleteRangeCall

type DeleteRangeCall struct {
	MinKeyInclusive string
	MaxKeyExclusive string
	Callback        func(*proto.DeleteRangeResponse, error)
}

func (DeleteRangeCall) ToProto

type GetCall

type GetCall struct {
	Key            string
	ComparisonType proto.KeyComparisonType
	Callback       func(*proto.GetResponse, error)
}

func (GetCall) ToProto

func (r GetCall) ToProto() *proto.GetRequest

type PutCall

type PutCall struct {
	Key                string
	Value              []byte
	ExpectedVersionId  *int64
	SequenceKeysDeltas []uint64
	SessionId          *int64
	ClientIdentity     *string
	PartitionKey       *string
	Callback           func(*proto.PutResponse, error)
}

func (PutCall) ToProto

func (r PutCall) ToProto() *proto.PutRequest

Jump to

Keyboard shortcuts

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