atomic

package
v1.14.0 Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2017 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ReadOnlyStore_Integer_Helper = struct {
	Args           func(key *string) *ReadOnlyStore_Integer_Args
	IsException    func(error) bool
	WrapResponse   func(int64, error) (*ReadOnlyStore_Integer_Result, error)
	UnwrapResponse func(*ReadOnlyStore_Integer_Result) (int64, error)
}{}
View Source
var Store_CompareAndSwap_Helper = struct {
	Args           func(request *CompareAndSwap) *Store_CompareAndSwap_Args
	IsException    func(error) bool
	WrapResponse   func(error) (*Store_CompareAndSwap_Result, error)
	UnwrapResponse func(*Store_CompareAndSwap_Result) error
}{}
View Source
var Store_Forget_Helper = struct {
	Args func(key *string) *Store_Forget_Args
}{}
View Source
var Store_Increment_Helper = struct {
	Args           func(key *string, value *int64) *Store_Increment_Args
	IsException    func(error) bool
	WrapResponse   func(error) (*Store_Increment_Result, error)
	UnwrapResponse func(*Store_Increment_Result) error
}{}
View Source
var ThriftModule = &thriftreflect.ThriftModule{Name: "atomic", Package: "go.uber.org/yarpc/encoding/thrift/thriftrw-plugin-yarpc/internal/tests/atomic", FilePath: "atomic.thrift", SHA1: "2bc145384bb2472af911bf797c7c23331111638a", Includes: []*thriftreflect.ThriftModule{common.ThriftModule}, Raw: rawIDL}

Functions

This section is empty.

Types

type CompareAndSwap

type CompareAndSwap struct {
	Key          string `json:"key,required"`
	CurrentValue int64  `json:"currentValue,required"`
	NewValue     int64  `json:"newValue,required"`
}

func (*CompareAndSwap) Equals added in v1.8.0

func (v *CompareAndSwap) Equals(rhs *CompareAndSwap) bool

func (*CompareAndSwap) FromWire

func (v *CompareAndSwap) FromWire(w wire.Value) error

func (*CompareAndSwap) String

func (v *CompareAndSwap) String() string

func (*CompareAndSwap) ToWire

func (v *CompareAndSwap) ToWire() (wire.Value, error)

type IntegerMismatchError

type IntegerMismatchError struct {
	ExpectedValue int64 `json:"expectedValue,required"`
	GotValue      int64 `json:"gotValue,required"`
}

func (*IntegerMismatchError) Equals added in v1.8.0

func (*IntegerMismatchError) Error

func (v *IntegerMismatchError) Error() string

func (*IntegerMismatchError) FromWire

func (v *IntegerMismatchError) FromWire(w wire.Value) error

func (*IntegerMismatchError) String

func (v *IntegerMismatchError) String() string

func (*IntegerMismatchError) ToWire

func (v *IntegerMismatchError) ToWire() (wire.Value, error)

type KeyDoesNotExist

type KeyDoesNotExist struct {
	Key *string `json:"key,omitempty"`
}

func (*KeyDoesNotExist) Equals added in v1.8.0

func (v *KeyDoesNotExist) Equals(rhs *KeyDoesNotExist) bool

func (*KeyDoesNotExist) Error

func (v *KeyDoesNotExist) Error() string

func (*KeyDoesNotExist) FromWire

func (v *KeyDoesNotExist) FromWire(w wire.Value) error

func (*KeyDoesNotExist) GetKey added in v1.14.0

func (v *KeyDoesNotExist) GetKey() (o string)

func (*KeyDoesNotExist) String

func (v *KeyDoesNotExist) String() string

func (*KeyDoesNotExist) ToWire

func (v *KeyDoesNotExist) ToWire() (wire.Value, error)

type ReadOnlyStore_Integer_Args added in v1.1.0

type ReadOnlyStore_Integer_Args struct {
	Key *string `json:"key,omitempty"`
}

func (*ReadOnlyStore_Integer_Args) EnvelopeType added in v1.1.0

func (v *ReadOnlyStore_Integer_Args) EnvelopeType() wire.EnvelopeType

func (*ReadOnlyStore_Integer_Args) Equals added in v1.8.0

func (*ReadOnlyStore_Integer_Args) FromWire added in v1.1.0

func (v *ReadOnlyStore_Integer_Args) FromWire(w wire.Value) error

func (*ReadOnlyStore_Integer_Args) GetKey added in v1.14.0

func (v *ReadOnlyStore_Integer_Args) GetKey() (o string)

func (*ReadOnlyStore_Integer_Args) MethodName added in v1.1.0

func (v *ReadOnlyStore_Integer_Args) MethodName() string

func (*ReadOnlyStore_Integer_Args) String added in v1.1.0

func (v *ReadOnlyStore_Integer_Args) String() string

func (*ReadOnlyStore_Integer_Args) ToWire added in v1.1.0

func (v *ReadOnlyStore_Integer_Args) ToWire() (wire.Value, error)

type ReadOnlyStore_Integer_Result added in v1.1.0

type ReadOnlyStore_Integer_Result struct {
	Success      *int64           `json:"success,omitempty"`
	DoesNotExist *KeyDoesNotExist `json:"doesNotExist,omitempty"`
}

func (*ReadOnlyStore_Integer_Result) EnvelopeType added in v1.1.0

func (*ReadOnlyStore_Integer_Result) Equals added in v1.8.0

func (*ReadOnlyStore_Integer_Result) FromWire added in v1.1.0

func (*ReadOnlyStore_Integer_Result) GetSuccess added in v1.14.0

func (v *ReadOnlyStore_Integer_Result) GetSuccess() (o int64)

func (*ReadOnlyStore_Integer_Result) MethodName added in v1.1.0

func (v *ReadOnlyStore_Integer_Result) MethodName() string

func (*ReadOnlyStore_Integer_Result) String added in v1.1.0

func (*ReadOnlyStore_Integer_Result) ToWire added in v1.1.0

type Store_CompareAndSwap_Args

type Store_CompareAndSwap_Args struct {
	Request *CompareAndSwap `json:"request,omitempty"`
}

func (*Store_CompareAndSwap_Args) EnvelopeType

func (v *Store_CompareAndSwap_Args) EnvelopeType() wire.EnvelopeType

func (*Store_CompareAndSwap_Args) Equals added in v1.8.0

func (*Store_CompareAndSwap_Args) FromWire

func (v *Store_CompareAndSwap_Args) FromWire(w wire.Value) error

func (*Store_CompareAndSwap_Args) MethodName

func (v *Store_CompareAndSwap_Args) MethodName() string

func (*Store_CompareAndSwap_Args) String

func (v *Store_CompareAndSwap_Args) String() string

func (*Store_CompareAndSwap_Args) ToWire

func (v *Store_CompareAndSwap_Args) ToWire() (wire.Value, error)

type Store_CompareAndSwap_Result

type Store_CompareAndSwap_Result struct {
	Mismatch *IntegerMismatchError `json:"mismatch,omitempty"`
}

func (*Store_CompareAndSwap_Result) EnvelopeType

func (v *Store_CompareAndSwap_Result) EnvelopeType() wire.EnvelopeType

func (*Store_CompareAndSwap_Result) Equals added in v1.8.0

func (*Store_CompareAndSwap_Result) FromWire

func (*Store_CompareAndSwap_Result) MethodName

func (v *Store_CompareAndSwap_Result) MethodName() string

func (*Store_CompareAndSwap_Result) String

func (v *Store_CompareAndSwap_Result) String() string

func (*Store_CompareAndSwap_Result) ToWire

type Store_Forget_Args

type Store_Forget_Args struct {
	Key *string `json:"key,omitempty"`
}

func (*Store_Forget_Args) EnvelopeType

func (v *Store_Forget_Args) EnvelopeType() wire.EnvelopeType

func (*Store_Forget_Args) Equals added in v1.8.0

func (v *Store_Forget_Args) Equals(rhs *Store_Forget_Args) bool

func (*Store_Forget_Args) FromWire

func (v *Store_Forget_Args) FromWire(w wire.Value) error

func (*Store_Forget_Args) GetKey added in v1.14.0

func (v *Store_Forget_Args) GetKey() (o string)

func (*Store_Forget_Args) MethodName

func (v *Store_Forget_Args) MethodName() string

func (*Store_Forget_Args) String

func (v *Store_Forget_Args) String() string

func (*Store_Forget_Args) ToWire

func (v *Store_Forget_Args) ToWire() (wire.Value, error)

type Store_Increment_Args

type Store_Increment_Args struct {
	Key   *string `json:"key,omitempty"`
	Value *int64  `json:"value,omitempty"`
}

func (*Store_Increment_Args) EnvelopeType

func (v *Store_Increment_Args) EnvelopeType() wire.EnvelopeType

func (*Store_Increment_Args) Equals added in v1.8.0

func (*Store_Increment_Args) FromWire

func (v *Store_Increment_Args) FromWire(w wire.Value) error

func (*Store_Increment_Args) GetKey added in v1.14.0

func (v *Store_Increment_Args) GetKey() (o string)

func (*Store_Increment_Args) GetValue added in v1.14.0

func (v *Store_Increment_Args) GetValue() (o int64)

func (*Store_Increment_Args) MethodName

func (v *Store_Increment_Args) MethodName() string

func (*Store_Increment_Args) String

func (v *Store_Increment_Args) String() string

func (*Store_Increment_Args) ToWire

func (v *Store_Increment_Args) ToWire() (wire.Value, error)

type Store_Increment_Result

type Store_Increment_Result struct{}

func (*Store_Increment_Result) EnvelopeType

func (v *Store_Increment_Result) EnvelopeType() wire.EnvelopeType

func (*Store_Increment_Result) Equals added in v1.8.0

func (*Store_Increment_Result) FromWire

func (v *Store_Increment_Result) FromWire(w wire.Value) error

func (*Store_Increment_Result) MethodName

func (v *Store_Increment_Result) MethodName() string

func (*Store_Increment_Result) String

func (v *Store_Increment_Result) String() string

func (*Store_Increment_Result) ToWire

func (v *Store_Increment_Result) ToWire() (wire.Value, error)

Jump to

Keyboard shortcuts

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