cockroach: github.com/cockroachdb/cockroach/pkg/kv/kvserver/protectedts/ptstorage Index | Files

package ptstorage

import "github.com/cockroachdb/cockroach/pkg/kv/kvserver/protectedts/ptstorage"

Package ptstorage implements protectedts.Storage.

Index

Package Files

sql.go storage.go storage.pb.go storage_with_database.go

Variables

var (
    ErrInvalidLengthStorage = fmt.Errorf("proto: negative length found during unmarshaling")
    ErrIntOverflowStorage   = fmt.Errorf("proto: integer overflow")
)

func New Uses

func New(settings *cluster.Settings, ex sqlutil.InternalExecutor) protectedts.Storage

New creates a new Storage.

func WithDatabase Uses

func WithDatabase(s protectedts.Storage, db *kv.DB) protectedts.Storage

WithDatabase wraps s such that any calls made with a nil *Txn will be wrapped in a call to db.Txn. This is often convenient in testing.

type Spans Uses

type Spans struct {
    // Spans are the set of spans protected by a Record.
    Spans []roachpb.Span `protobuf:"bytes,7,rep,name=spans,proto3" json:"spans"`
}

Spans is the format of the message encoded in the spans column of a the system.protectedts_records table.

func (*Spans) Descriptor Uses

func (*Spans) Descriptor() ([]byte, []int)

func (*Spans) Marshal Uses

func (m *Spans) Marshal() (dAtA []byte, err error)

func (*Spans) MarshalTo Uses

func (m *Spans) MarshalTo(dAtA []byte) (int, error)

func (*Spans) ProtoMessage Uses

func (*Spans) ProtoMessage()

func (*Spans) Reset Uses

func (m *Spans) Reset()

func (*Spans) Size Uses

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

func (*Spans) String Uses

func (m *Spans) String() string

func (*Spans) Unmarshal Uses

func (m *Spans) Unmarshal(dAtA []byte) error

func (*Spans) XXX_DiscardUnknown Uses

func (m *Spans) XXX_DiscardUnknown()

func (*Spans) XXX_Marshal Uses

func (m *Spans) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Spans) XXX_Merge Uses

func (dst *Spans) XXX_Merge(src proto.Message)

func (*Spans) XXX_Size Uses

func (m *Spans) XXX_Size() int

func (*Spans) XXX_Unmarshal Uses

func (m *Spans) XXX_Unmarshal(b []byte) error

Package ptstorage imports 19 packages (graph) and is imported by 2 packages. Updated 2020-08-12. Refresh now. Tools for package owners.