dog

package
v0.0.0-...-8d2a667 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2018 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Dog

type Dog C.Struct

func AutoNewDog

func AutoNewDog(s *C.Segment) Dog

func NewDog

func NewDog(s *C.Segment) Dog

func NewRootDog

func NewRootDog(s *C.Segment) Dog

func ReadRootDog

func ReadRootDog(s *C.Segment) Dog

func (Dog) Age

func (s Dog) Age() int8

func (Dog) GetSegment

func (s Dog) GetSegment() *capn.Segment

func (Dog) Id

func (s Dog) Id() int32

func (Dog) MarshalCapLit

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

func (Dog) MarshalJSON

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

func (Dog) Name

func (s Dog) Name() string

func (Dog) NameBytes

func (s Dog) NameBytes() []byte

func (Dog) ReadCapLit

func (s Dog) ReadCapLit(r io.Reader) error

func (Dog) SetAge

func (s Dog) SetAge(v int8)

func (Dog) SetId

func (s Dog) SetId(v int32)

func (Dog) SetName

func (s Dog) SetName(v string)

func (Dog) SetToys

func (s Dog) SetToys(v DogToy_List)

func (Dog) Toys

func (s Dog) Toys() DogToy_List

func (Dog) WriteCapLit

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

func (Dog) WriteJSON

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

type DogToy

type DogToy C.Struct

func AutoNewDogToy

func AutoNewDogToy(s *C.Segment) DogToy

func NewDogToy

func NewDogToy(s *C.Segment) DogToy

func NewRootDogToy

func NewRootDogToy(s *C.Segment) DogToy

func ReadRootDogToy

func ReadRootDogToy(s *C.Segment) DogToy

func (DogToy) GetSegment

func (s DogToy) GetSegment() *capn.Segment

func (DogToy) Id

func (s DogToy) Id() int32

func (DogToy) MarshalCapLit

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

func (DogToy) MarshalJSON

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

func (DogToy) Price

func (s DogToy) Price() int64

func (DogToy) ReadCapLit

func (s DogToy) ReadCapLit(r io.Reader) error

func (DogToy) SetId

func (s DogToy) SetId(v int32)

func (DogToy) SetPrice

func (s DogToy) SetPrice(v int64)

func (DogToy) SetToyType

func (s DogToy) SetToyType(v ToyType)

func (DogToy) ToyType

func (s DogToy) ToyType() ToyType

func (DogToy) WriteCapLit

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

func (DogToy) WriteJSON

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

type DogToy_List

type DogToy_List C.PointerList

func NewDogToyList

func NewDogToyList(s *C.Segment, sz int) DogToy_List

func (DogToy_List) At

func (s DogToy_List) At(i int) DogToy

func (DogToy_List) Len

func (s DogToy_List) Len() int

func (DogToy_List) Set

func (s DogToy_List) Set(i int, item DogToy)

func (DogToy_List) ToArray

func (s DogToy_List) ToArray() []DogToy

type Dog_List

type Dog_List C.PointerList

func NewDogList

func NewDogList(s *C.Segment, sz int) Dog_List

func (Dog_List) At

func (s Dog_List) At(i int) Dog

func (Dog_List) Len

func (s Dog_List) Len() int

func (Dog_List) Set

func (s Dog_List) Set(i int, item Dog)

func (Dog_List) ToArray

func (s Dog_List) ToArray() []Dog

type ToyType

type ToyType uint16
const (
	TOYTYPE_NONE ToyType = 0
	TOYTYPE_DOLL ToyType = 1
	TOYTYPE_ASDF ToyType = 2
)

func ToyTypeFromString

func ToyTypeFromString(c string) ToyType

func (ToyType) MarshalCapLit

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

func (ToyType) MarshalJSON

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

func (ToyType) String

func (c ToyType) String() string

func (ToyType) WriteCapLit

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

func (ToyType) WriteJSON

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

type ToyType_List

type ToyType_List C.PointerList

func NewToyTypeList

func NewToyTypeList(s *C.Segment, sz int) ToyType_List

func (ToyType_List) At

func (s ToyType_List) At(i int) ToyType

func (ToyType_List) Len

func (s ToyType_List) Len() int

func (ToyType_List) Set

func (s ToyType_List) Set(i int, item ToyType)

func (ToyType_List) ToArray

func (s ToyType_List) ToArray() []ToyType

Jump to

Keyboard shortcuts

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