consistencyv1

package
v1.36.11-2026011920122... Latest Latest
Warning

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

Go to latest
Published: unknown License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_fjarm_consistency_v1_entity_tag_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type EntityTag

type EntityTag struct {

	// The entity tag representing the latest data as known to the server.
	EntityTag *string `protobuf:"bytes,1,opt,name=entity_tag,json=entityTag,proto3,oneof" json:"entity_tag,omitempty"`
	// contains filtered or unexported fields
}

SEE: https://google.aip.dev/154 AIP-154 recommends including an `etag` field on an entity. The value can be used in read RPCs to avoid expensive operations like database reads if the client already has the latest data as confirmed by the `etag`. The value can also be used in mutation RPCs to prevent clients with outdated data from overwriting a prior, concurrent mutation. If `etag` validation fails (an RPC was made with stale data), a `PRECONDITION_FAILED` result is returned.

EntityTag describes a consistency mechanism for read RPCs that need the latest data state or mutation RPCs that must have the latest state before proceeding.

func (*EntityTag) ClearEntityTag

func (x *EntityTag) ClearEntityTag()

func (*EntityTag) GetEntityTag

func (x *EntityTag) GetEntityTag() string

func (*EntityTag) HasEntityTag

func (x *EntityTag) HasEntityTag() bool

func (*EntityTag) ProtoMessage

func (*EntityTag) ProtoMessage()

func (*EntityTag) ProtoReflect

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

func (*EntityTag) Reset

func (x *EntityTag) Reset()

func (*EntityTag) SetEntityTag

func (x *EntityTag) SetEntityTag(v string)

func (*EntityTag) String

func (x *EntityTag) String() string

type EntityTag_builder

type EntityTag_builder struct {

	// The entity tag representing the latest data as known to the server.
	EntityTag *string
	// contains filtered or unexported fields
}

func (EntityTag_builder) Build

func (b0 EntityTag_builder) Build() *EntityTag

Source Files

  • entity_tag.pb.go

Jump to

Keyboard shortcuts

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