capnp

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2019 License: AGPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const Event_TypeID = 0x9c032508b61d1d09

Event_TypeID is the unique identifier for the type Event.

Variables

This section is empty.

Functions

This section is empty.

Types

type Event

type Event struct{ capnp.Struct }

func NewEvent

func NewEvent(s *capnp.Segment) (Event, error)

func NewRootEvent

func NewRootEvent(s *capnp.Segment) (Event, error)

func ReadRootEvent

func ReadRootEvent(msg *capnp.Message) (Event, error)

func (Event) HasType

func (s Event) HasType() bool

func (Event) SetType

func (s Event) SetType(v string) error

func (Event) String

func (s Event) String() string

func (Event) Type

func (s Event) Type() (string, error)

func (Event) TypeBytes

func (s Event) TypeBytes() ([]byte, error)

type Event_List

type Event_List struct{ capnp.List }

Event_List is a list of Event.

func NewEvent_List

func NewEvent_List(s *capnp.Segment, sz int32) (Event_List, error)

NewEvent creates a new list of Event.

func (Event_List) At

func (s Event_List) At(i int) Event

func (Event_List) Set

func (s Event_List) Set(i int, v Event) error

func (Event_List) String

func (s Event_List) String() string

type Event_Promise

type Event_Promise struct{ *capnp.Pipeline }

Event_Promise is a wrapper for a Event promised by a client call.

func (Event_Promise) Struct

func (p Event_Promise) Struct() (Event, error)

Jump to

Keyboard shortcuts

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