capnp

package
v0.0.0-...-9eea049 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2018 License: Apache-2.0 Imports: 5 Imported by: 18

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Capability

type Capability C.Struct

func AutoNewCapability

func AutoNewCapability(s *C.Segment) Capability

func NewCapability

func NewCapability(s *C.Segment) Capability

func NewRootCapability

func NewRootCapability(s *C.Segment) Capability

func ReadRootCapability

func ReadRootCapability(s *C.Segment) Capability

func (Capability) MarshalCapLit

func (s Capability) MarshalCapLit() ([]byte, error)

func (Capability) MarshalJSON

func (s Capability) MarshalJSON() ([]byte, error)

func (Capability) SetNone

func (s Capability) SetNone()

func (Capability) SetRead

func (s Capability) SetRead()

func (Capability) SetReadWrite

func (s Capability) SetReadWrite()

func (Capability) SetWrite

func (s Capability) SetWrite()

func (Capability) Which

func (s Capability) Which() Capability_Which

func (Capability) WriteCapLit

func (s Capability) WriteCapLit(w io.Writer) error

func (Capability) WriteJSON

func (s Capability) WriteJSON(w io.Writer) error

type Capability_List

type Capability_List C.PointerList

func NewCapabilityList

func NewCapabilityList(s *C.Segment, sz int) Capability_List

func (Capability_List) At

func (s Capability_List) At(i int) Capability

func (Capability_List) Len

func (s Capability_List) Len() int

func (Capability_List) Set

func (s Capability_List) Set(i int, item Capability)

func (Capability_List) ToArray

func (s Capability_List) ToArray() []Capability

type Capability_Which

type Capability_Which uint16
const (
	CAPABILITY_NONE      Capability_Which = 0
	CAPABILITY_READ      Capability_Which = 1
	CAPABILITY_WRITE     Capability_Which = 2
	CAPABILITY_READWRITE Capability_Which = 3
)

type ClientAction

type ClientAction C.Struct

func AutoNewClientAction

func AutoNewClientAction(s *C.Segment) ClientAction

func NewClientAction

func NewClientAction(s *C.Segment) ClientAction

func NewRootClientAction

func NewRootClientAction(s *C.Segment) ClientAction

func ReadRootClientAction

func ReadRootClientAction(s *C.Segment) ClientAction

func (ClientAction) MarshalCapLit

func (s ClientAction) MarshalCapLit() ([]byte, error)

func (ClientAction) MarshalJSON

func (s ClientAction) MarshalJSON() ([]byte, error)

func (ClientAction) Meta

func (s ClientAction) Meta() ClientActionMeta

func (ClientAction) SetVarId

func (s ClientAction) SetVarId(v []byte)

func (ClientAction) Value

func (s ClientAction) Value() ClientActionValue

func (ClientAction) VarId

func (s ClientAction) VarId() []byte

func (ClientAction) WriteCapLit

func (s ClientAction) WriteCapLit(w io.Writer) error

func (ClientAction) WriteJSON

func (s ClientAction) WriteJSON(w io.Writer) error

type ClientActionMeta

type ClientActionMeta ClientAction

func (ClientActionMeta) AddSub

func (s ClientActionMeta) AddSub() bool

func (ClientActionMeta) DelSub

func (s ClientActionMeta) DelSub() []byte

func (ClientActionMeta) SetAddSub

func (s ClientActionMeta) SetAddSub(v bool)

func (ClientActionMeta) SetDelSub

func (s ClientActionMeta) SetDelSub(v []byte)

type ClientActionValue

type ClientActionValue ClientAction

func (ClientActionValue) Create

func (ClientActionValue) Existing

func (ClientActionValue) SetCreate

func (s ClientActionValue) SetCreate()

func (ClientActionValue) SetExisting

func (s ClientActionValue) SetExisting()

func (ClientActionValue) SetMissing

func (s ClientActionValue) SetMissing()

func (ClientActionValue) Which

type ClientActionValueCreate

type ClientActionValueCreate ClientAction

func (ClientActionValueCreate) References

func (ClientActionValueCreate) SetReferences

func (s ClientActionValueCreate) SetReferences(v ClientVarIdPos_List)

func (ClientActionValueCreate) SetValue

func (s ClientActionValueCreate) SetValue(v []byte)

func (ClientActionValueCreate) Value

func (s ClientActionValueCreate) Value() []byte

type ClientActionValueExisting

type ClientActionValueExisting ClientAction

func (ClientActionValueExisting) Modify

func (ClientActionValueExisting) Read

func (ClientActionValueExisting) SetRead

func (s ClientActionValueExisting) SetRead(v bool)

type ClientActionValueExistingModify

type ClientActionValueExistingModify ClientAction

func (ClientActionValueExistingModify) SetNot

func (ClientActionValueExistingModify) SetRoll

func (s ClientActionValueExistingModify) SetRoll()

func (ClientActionValueExistingModify) SetWrite

func (s ClientActionValueExistingModify) SetWrite()

func (ClientActionValueExistingModify) Which

func (ClientActionValueExistingModify) Write

type ClientActionValueExistingModifyWrite

type ClientActionValueExistingModifyWrite ClientAction

func (ClientActionValueExistingModifyWrite) References

func (ClientActionValueExistingModifyWrite) SetReferences

func (ClientActionValueExistingModifyWrite) SetValue

func (ClientActionValueExistingModifyWrite) Value

type ClientActionValueExistingModify_Which

type ClientActionValueExistingModify_Which uint16
const (
	CLIENTACTIONVALUEEXISTINGMODIFY_NOT   ClientActionValueExistingModify_Which = 0
	CLIENTACTIONVALUEEXISTINGMODIFY_ROLL  ClientActionValueExistingModify_Which = 1
	CLIENTACTIONVALUEEXISTINGMODIFY_WRITE ClientActionValueExistingModify_Which = 2
)

type ClientActionValue_Which

type ClientActionValue_Which uint16
const (
	CLIENTACTIONVALUE_MISSING  ClientActionValue_Which = 0
	CLIENTACTIONVALUE_CREATE   ClientActionValue_Which = 1
	CLIENTACTIONVALUE_EXISTING ClientActionValue_Which = 2
)

type ClientAction_List

type ClientAction_List C.PointerList

func NewClientActionList

func NewClientActionList(s *C.Segment, sz int) ClientAction_List

func (ClientAction_List) At

func (ClientAction_List) Len

func (s ClientAction_List) Len() int

func (ClientAction_List) Set

func (s ClientAction_List) Set(i int, item ClientAction)

func (ClientAction_List) ToArray

func (s ClientAction_List) ToArray() []ClientAction

type ClientMessage

type ClientMessage C.Struct

func AutoNewClientMessage

func AutoNewClientMessage(s *C.Segment) ClientMessage

func NewClientMessage

func NewClientMessage(s *C.Segment) ClientMessage

func NewRootClientMessage

func NewRootClientMessage(s *C.Segment) ClientMessage

func ReadRootClientMessage

func ReadRootClientMessage(s *C.Segment) ClientMessage

func (ClientMessage) ClientTxnOutcome

func (s ClientMessage) ClientTxnOutcome() ClientTxnOutcome

func (ClientMessage) ClientTxnSubmission

func (s ClientMessage) ClientTxnSubmission() ClientTxn

func (ClientMessage) MarshalCapLit

func (s ClientMessage) MarshalCapLit() ([]byte, error)

func (ClientMessage) MarshalJSON

func (s ClientMessage) MarshalJSON() ([]byte, error)

func (ClientMessage) SetClientTxnOutcome

func (s ClientMessage) SetClientTxnOutcome(v ClientTxnOutcome)

func (ClientMessage) SetClientTxnSubmission

func (s ClientMessage) SetClientTxnSubmission(v ClientTxn)

func (ClientMessage) SetHeartbeat

func (s ClientMessage) SetHeartbeat()

func (ClientMessage) Which

func (ClientMessage) WriteCapLit

func (s ClientMessage) WriteCapLit(w io.Writer) error

func (ClientMessage) WriteJSON

func (s ClientMessage) WriteJSON(w io.Writer) error

type ClientMessage_List

type ClientMessage_List C.PointerList

func NewClientMessageList

func NewClientMessageList(s *C.Segment, sz int) ClientMessage_List

func (ClientMessage_List) At

func (ClientMessage_List) Len

func (s ClientMessage_List) Len() int

func (ClientMessage_List) Set

func (s ClientMessage_List) Set(i int, item ClientMessage)

func (ClientMessage_List) ToArray

func (s ClientMessage_List) ToArray() []ClientMessage

type ClientMessage_Which

type ClientMessage_Which uint16
const (
	CLIENTMESSAGE_HEARTBEAT           ClientMessage_Which = 0
	CLIENTMESSAGE_CLIENTTXNSUBMISSION ClientMessage_Which = 1
	CLIENTMESSAGE_CLIENTTXNOUTCOME    ClientMessage_Which = 2
)

type ClientTxn

type ClientTxn C.Struct

func AutoNewClientTxn

func AutoNewClientTxn(s *C.Segment) ClientTxn

func NewClientTxn

func NewClientTxn(s *C.Segment) ClientTxn

func NewRootClientTxn

func NewRootClientTxn(s *C.Segment) ClientTxn

func ReadRootClientTxn

func ReadRootClientTxn(s *C.Segment) ClientTxn

func (ClientTxn) Actions

func (s ClientTxn) Actions() ClientAction_List

func (ClientTxn) Counter

func (s ClientTxn) Counter() uint64

func (ClientTxn) Id

func (s ClientTxn) Id() []byte

func (ClientTxn) MarshalCapLit

func (s ClientTxn) MarshalCapLit() ([]byte, error)

func (ClientTxn) MarshalJSON

func (s ClientTxn) MarshalJSON() ([]byte, error)

func (ClientTxn) SetActions

func (s ClientTxn) SetActions(v ClientAction_List)

func (ClientTxn) SetCounter

func (s ClientTxn) SetCounter(v uint64)

func (ClientTxn) SetId

func (s ClientTxn) SetId(v []byte)

func (ClientTxn) WriteCapLit

func (s ClientTxn) WriteCapLit(w io.Writer) error

func (ClientTxn) WriteJSON

func (s ClientTxn) WriteJSON(w io.Writer) error

type ClientTxnOutcome

type ClientTxnOutcome C.Struct

func AutoNewClientTxnOutcome

func AutoNewClientTxnOutcome(s *C.Segment) ClientTxnOutcome

func NewClientTxnOutcome

func NewClientTxnOutcome(s *C.Segment) ClientTxnOutcome

func NewRootClientTxnOutcome

func NewRootClientTxnOutcome(s *C.Segment) ClientTxnOutcome

func ReadRootClientTxnOutcome

func ReadRootClientTxnOutcome(s *C.Segment) ClientTxnOutcome

func (ClientTxnOutcome) Abort

func (ClientTxnOutcome) Counter

func (s ClientTxnOutcome) Counter() uint64

func (ClientTxnOutcome) Error

func (s ClientTxnOutcome) Error() string

func (ClientTxnOutcome) ErrorBytes

func (s ClientTxnOutcome) ErrorBytes() []byte

func (ClientTxnOutcome) FinalId

func (s ClientTxnOutcome) FinalId() []byte

func (ClientTxnOutcome) Id

func (s ClientTxnOutcome) Id() []byte

func (ClientTxnOutcome) MarshalCapLit

func (s ClientTxnOutcome) MarshalCapLit() ([]byte, error)

func (ClientTxnOutcome) MarshalJSON

func (s ClientTxnOutcome) MarshalJSON() ([]byte, error)

func (ClientTxnOutcome) SetAbort

func (s ClientTxnOutcome) SetAbort(v ClientAction_List)

func (ClientTxnOutcome) SetCommit

func (s ClientTxnOutcome) SetCommit()

func (ClientTxnOutcome) SetCounter

func (s ClientTxnOutcome) SetCounter(v uint64)

func (ClientTxnOutcome) SetError

func (s ClientTxnOutcome) SetError(v string)

func (ClientTxnOutcome) SetFinalId

func (s ClientTxnOutcome) SetFinalId(v []byte)

func (ClientTxnOutcome) SetId

func (s ClientTxnOutcome) SetId(v []byte)

func (ClientTxnOutcome) Which

func (ClientTxnOutcome) WriteCapLit

func (s ClientTxnOutcome) WriteCapLit(w io.Writer) error

func (ClientTxnOutcome) WriteJSON

func (s ClientTxnOutcome) WriteJSON(w io.Writer) error

type ClientTxnOutcome_List

type ClientTxnOutcome_List C.PointerList

func NewClientTxnOutcomeList

func NewClientTxnOutcomeList(s *C.Segment, sz int) ClientTxnOutcome_List

func (ClientTxnOutcome_List) At

func (ClientTxnOutcome_List) Len

func (s ClientTxnOutcome_List) Len() int

func (ClientTxnOutcome_List) Set

func (ClientTxnOutcome_List) ToArray

type ClientTxnOutcome_Which

type ClientTxnOutcome_Which uint16
const (
	CLIENTTXNOUTCOME_COMMIT ClientTxnOutcome_Which = 0
	CLIENTTXNOUTCOME_ABORT  ClientTxnOutcome_Which = 1
	CLIENTTXNOUTCOME_ERROR  ClientTxnOutcome_Which = 2
)

type ClientTxn_List

type ClientTxn_List C.PointerList

func NewClientTxnList

func NewClientTxnList(s *C.Segment, sz int) ClientTxn_List

func (ClientTxn_List) At

func (s ClientTxn_List) At(i int) ClientTxn

func (ClientTxn_List) Len

func (s ClientTxn_List) Len() int

func (ClientTxn_List) Set

func (s ClientTxn_List) Set(i int, item ClientTxn)

func (ClientTxn_List) ToArray

func (s ClientTxn_List) ToArray() []ClientTxn

type ClientVarIdPos

type ClientVarIdPos C.Struct

func AutoNewClientVarIdPos

func AutoNewClientVarIdPos(s *C.Segment) ClientVarIdPos

func NewClientVarIdPos

func NewClientVarIdPos(s *C.Segment) ClientVarIdPos

func NewRootClientVarIdPos

func NewRootClientVarIdPos(s *C.Segment) ClientVarIdPos

func ReadRootClientVarIdPos

func ReadRootClientVarIdPos(s *C.Segment) ClientVarIdPos

func (ClientVarIdPos) Capability

func (s ClientVarIdPos) Capability() Capability

func (ClientVarIdPos) MarshalCapLit

func (s ClientVarIdPos) MarshalCapLit() ([]byte, error)

func (ClientVarIdPos) MarshalJSON

func (s ClientVarIdPos) MarshalJSON() ([]byte, error)

func (ClientVarIdPos) SetCapability

func (s ClientVarIdPos) SetCapability(v Capability)

func (ClientVarIdPos) SetVarId

func (s ClientVarIdPos) SetVarId(v []byte)

func (ClientVarIdPos) VarId

func (s ClientVarIdPos) VarId() []byte

func (ClientVarIdPos) WriteCapLit

func (s ClientVarIdPos) WriteCapLit(w io.Writer) error

func (ClientVarIdPos) WriteJSON

func (s ClientVarIdPos) WriteJSON(w io.Writer) error

type ClientVarIdPos_List

type ClientVarIdPos_List C.PointerList

func NewClientVarIdPosList

func NewClientVarIdPosList(s *C.Segment, sz int) ClientVarIdPos_List

func (ClientVarIdPos_List) At

func (ClientVarIdPos_List) Len

func (s ClientVarIdPos_List) Len() int

func (ClientVarIdPos_List) Set

func (s ClientVarIdPos_List) Set(i int, item ClientVarIdPos)

func (ClientVarIdPos_List) ToArray

func (s ClientVarIdPos_List) ToArray() []ClientVarIdPos

type Hello

type Hello C.Struct

func AutoNewHello

func AutoNewHello(s *C.Segment) Hello

func NewHello

func NewHello(s *C.Segment) Hello

func NewRootHello

func NewRootHello(s *C.Segment) Hello

func ReadRootHello

func ReadRootHello(s *C.Segment) Hello

func (Hello) IsClient

func (s Hello) IsClient() bool

func (Hello) MarshalCapLit

func (s Hello) MarshalCapLit() ([]byte, error)

func (Hello) MarshalJSON

func (s Hello) MarshalJSON() ([]byte, error)

func (Hello) Product

func (s Hello) Product() string

func (Hello) ProductBytes

func (s Hello) ProductBytes() []byte

func (Hello) SetIsClient

func (s Hello) SetIsClient(v bool)

func (Hello) SetProduct

func (s Hello) SetProduct(v string)

func (Hello) SetVersion

func (s Hello) SetVersion(v string)

func (Hello) Version

func (s Hello) Version() string

func (Hello) VersionBytes

func (s Hello) VersionBytes() []byte

func (Hello) WriteCapLit

func (s Hello) WriteCapLit(w io.Writer) error

func (Hello) WriteJSON

func (s Hello) WriteJSON(w io.Writer) error

type HelloClientFromServer

type HelloClientFromServer C.Struct

func AutoNewHelloClientFromServer

func AutoNewHelloClientFromServer(s *C.Segment) HelloClientFromServer

func NewHelloClientFromServer

func NewHelloClientFromServer(s *C.Segment) HelloClientFromServer

func NewRootHelloClientFromServer

func NewRootHelloClientFromServer(s *C.Segment) HelloClientFromServer

func ReadRootHelloClientFromServer

func ReadRootHelloClientFromServer(s *C.Segment) HelloClientFromServer

func (HelloClientFromServer) MarshalCapLit

func (s HelloClientFromServer) MarshalCapLit() ([]byte, error)

func (HelloClientFromServer) MarshalJSON

func (s HelloClientFromServer) MarshalJSON() ([]byte, error)

func (HelloClientFromServer) Namespace

func (s HelloClientFromServer) Namespace() []byte

func (HelloClientFromServer) Roots

func (s HelloClientFromServer) Roots() Root_List

func (HelloClientFromServer) SetNamespace

func (s HelloClientFromServer) SetNamespace(v []byte)

func (HelloClientFromServer) SetRoots

func (s HelloClientFromServer) SetRoots(v Root_List)

func (HelloClientFromServer) WriteCapLit

func (s HelloClientFromServer) WriteCapLit(w io.Writer) error

func (HelloClientFromServer) WriteJSON

func (s HelloClientFromServer) WriteJSON(w io.Writer) error

type HelloClientFromServer_List

type HelloClientFromServer_List C.PointerList

func NewHelloClientFromServerList

func NewHelloClientFromServerList(s *C.Segment, sz int) HelloClientFromServer_List

func (HelloClientFromServer_List) At

func (HelloClientFromServer_List) Len

func (HelloClientFromServer_List) Set

func (HelloClientFromServer_List) ToArray

type Hello_List

type Hello_List C.PointerList

func NewHelloList

func NewHelloList(s *C.Segment, sz int) Hello_List

func (Hello_List) At

func (s Hello_List) At(i int) Hello

func (Hello_List) Len

func (s Hello_List) Len() int

func (Hello_List) Set

func (s Hello_List) Set(i int, item Hello)

func (Hello_List) ToArray

func (s Hello_List) ToArray() []Hello

type Root

type Root C.Struct

func AutoNewRoot

func AutoNewRoot(s *C.Segment) Root

func NewRoot

func NewRoot(s *C.Segment) Root

func NewRootRoot

func NewRootRoot(s *C.Segment) Root

func ReadRootRoot

func ReadRootRoot(s *C.Segment) Root

func (Root) Capability

func (s Root) Capability() Capability

func (Root) MarshalCapLit

func (s Root) MarshalCapLit() ([]byte, error)

func (Root) MarshalJSON

func (s Root) MarshalJSON() ([]byte, error)

func (Root) Name

func (s Root) Name() string

func (Root) NameBytes

func (s Root) NameBytes() []byte

func (Root) SetCapability

func (s Root) SetCapability(v Capability)

func (Root) SetName

func (s Root) SetName(v string)

func (Root) SetVarId

func (s Root) SetVarId(v []byte)

func (Root) VarId

func (s Root) VarId() []byte

func (Root) WriteCapLit

func (s Root) WriteCapLit(w io.Writer) error

func (Root) WriteJSON

func (s Root) WriteJSON(w io.Writer) error

type Root_List

type Root_List C.PointerList

func NewRootList

func NewRootList(s *C.Segment, sz int) Root_List

func (Root_List) At

func (s Root_List) At(i int) Root

func (Root_List) Len

func (s Root_List) Len() int

func (Root_List) Set

func (s Root_List) Set(i int, item Root)

func (Root_List) ToArray

func (s Root_List) ToArray() []Root

Jump to

Keyboard shortcuts

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