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 User_TypeID = 0x861de4463c5a4a22

User_TypeID is the unique identifier for the type User.

Variables

This section is empty.

Functions

This section is empty.

Types

type User

type User struct{ capnp.Struct }

func NewRootUser

func NewRootUser(s *capnp.Segment) (User, error)

func NewUser

func NewUser(s *capnp.Segment) (User, error)

func ReadRootUser

func ReadRootUser(msg *capnp.Message) (User, error)

func (User) Folders

func (s User) Folders() (capnp.TextList, error)

func (User) HasFolders

func (s User) HasFolders() bool

func (User) HasName

func (s User) HasName() bool

func (User) HasPasswordHash

func (s User) HasPasswordHash() bool

func (User) HasRights

func (s User) HasRights() bool

func (User) HasSalt

func (s User) HasSalt() bool

func (User) Name

func (s User) Name() (string, error)

func (User) NameBytes

func (s User) NameBytes() ([]byte, error)

func (User) NewFolders

func (s User) NewFolders(n int32) (capnp.TextList, error)

NewFolders sets the folders field to a newly allocated capnp.TextList, preferring placement in s's segment.

func (User) NewRights

func (s User) NewRights(n int32) (capnp.TextList, error)

NewRights sets the rights field to a newly allocated capnp.TextList, preferring placement in s's segment.

func (User) PasswordHash

func (s User) PasswordHash() (string, error)

func (User) PasswordHashBytes

func (s User) PasswordHashBytes() ([]byte, error)

func (User) Rights

func (s User) Rights() (capnp.TextList, error)

func (User) Salt

func (s User) Salt() (string, error)

func (User) SaltBytes

func (s User) SaltBytes() ([]byte, error)

func (User) SetFolders

func (s User) SetFolders(v capnp.TextList) error

func (User) SetName

func (s User) SetName(v string) error

func (User) SetPasswordHash

func (s User) SetPasswordHash(v string) error

func (User) SetRights

func (s User) SetRights(v capnp.TextList) error

func (User) SetSalt

func (s User) SetSalt(v string) error

func (User) String

func (s User) String() string

type User_List

type User_List struct{ capnp.List }

User_List is a list of User.

func NewUser_List

func NewUser_List(s *capnp.Segment, sz int32) (User_List, error)

NewUser creates a new list of User.

func (User_List) At

func (s User_List) At(i int) User

func (User_List) Set

func (s User_List) Set(i int, v User) error

func (User_List) String

func (s User_List) String() string

type User_Promise

type User_Promise struct{ *capnp.Pipeline }

User_Promise is a wrapper for a User promised by a client call.

func (User_Promise) Struct

func (p User_Promise) Struct() (User, error)

Jump to

Keyboard shortcuts

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