transport

package
v0.0.0-...-ac41614 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecodeContext

func DecodeContext(context string) (map[string]uint64, error)

func EncodeContext

func EncodeContext(context map[string]uint64) (string, error)

Types

type TransportRow

type TransportRow struct {
	Key          string   `json:"key"`
	LocalVersion uint64   `json:"serial"`
	Context      string   `json:"context"`
	Siblings     []string `json:"siblings"`
}

func (*TransportRow) FromRow

func (tr *TransportRow) FromRow(row *Row) error

type TransportSiblingSet

type TransportSiblingSet struct {
	Siblings []string `json:"siblings"`
	Context  string   `json:"context"`
}

func (*TransportSiblingSet) FromSiblingSet

func (tss *TransportSiblingSet) FromSiblingSet(siblingSet *SiblingSet) error

type TransportUpdateBatch

type TransportUpdateBatch []TransportUpdateOp

func (TransportUpdateBatch) FromUpdateBatch

func (tub TransportUpdateBatch) FromUpdateBatch(updateBatch *UpdateBatch) error

func (TransportUpdateBatch) ToUpdateBatch

func (tub TransportUpdateBatch) ToUpdateBatch(updateBatch *UpdateBatch) error

type TransportUpdateOp

type TransportUpdateOp struct {
	Type    string `json:"type"`
	Key     string `json:"key"`
	Value   string `json:"value"`
	Context string `json:"context"`
}

Jump to

Keyboard shortcuts

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