Documentation ¶
Index ¶
- Constants
- func Identity_Methods(methods []server.Method, s Identity_Server) []server.Method
- func Identity_NewServer(s Identity_Server) *server.Server
- type Identity
- func (c Identity) AddRef() Identity
- func (Identity) DecodeFromPtr(p capnp.Ptr) Identity
- func (c Identity) EncodeAsPtr(seg *capnp.Segment) capnp.Ptr
- func (c Identity) GetFlowLimiter() fc.FlowLimiter
- func (c Identity) GetProfile(ctx context.Context, params func(Identity_getProfile_Params) error) (Identity_getProfile_Results_Future, capnp.ReleaseFunc)
- func (c Identity) IsSame(other Identity) bool
- func (c Identity) IsValid() bool
- func (c Identity) Release()
- func (c Identity) Resolve(ctx context.Context) error
- func (c Identity) SetFlowLimiter(lim fc.FlowLimiter)
- func (c Identity) String() string
- type Identity_List
- type Identity_PowerboxTag
- func (Identity_PowerboxTag) DecodeFromPtr(p capnp.Ptr) Identity_PowerboxTag
- func (s Identity_PowerboxTag) EncodeAsPtr(seg *capnp.Segment) capnp.Ptr
- func (s Identity_PowerboxTag) HasPermissions() bool
- func (s Identity_PowerboxTag) IsValid() bool
- func (s Identity_PowerboxTag) Message() *capnp.Message
- func (s Identity_PowerboxTag) NewPermissions(n int32) (capnp.BitList, error)
- func (s Identity_PowerboxTag) Permissions() (capnp.BitList, error)
- func (s Identity_PowerboxTag) Segment() *capnp.Segment
- func (s Identity_PowerboxTag) SetPermissions(v capnp.BitList) error
- func (s Identity_PowerboxTag) String() string
- func (s Identity_PowerboxTag) ToPtr() capnp.Ptr
- type Identity_PowerboxTag_Future
- type Identity_PowerboxTag_List
- type Identity_Server
- type Identity_getProfile
- type Identity_getProfile_Params
- func (Identity_getProfile_Params) DecodeFromPtr(p capnp.Ptr) Identity_getProfile_Params
- func (s Identity_getProfile_Params) EncodeAsPtr(seg *capnp.Segment) capnp.Ptr
- func (s Identity_getProfile_Params) IsValid() bool
- func (s Identity_getProfile_Params) Message() *capnp.Message
- func (s Identity_getProfile_Params) Segment() *capnp.Segment
- func (s Identity_getProfile_Params) String() string
- func (s Identity_getProfile_Params) ToPtr() capnp.Ptr
- type Identity_getProfile_Params_Future
- type Identity_getProfile_Params_List
- type Identity_getProfile_Results
- func (Identity_getProfile_Results) DecodeFromPtr(p capnp.Ptr) Identity_getProfile_Results
- func (s Identity_getProfile_Results) EncodeAsPtr(seg *capnp.Segment) capnp.Ptr
- func (s Identity_getProfile_Results) HasProfile() bool
- func (s Identity_getProfile_Results) IsValid() bool
- func (s Identity_getProfile_Results) Message() *capnp.Message
- func (s Identity_getProfile_Results) NewProfile() (Profile, error)
- func (s Identity_getProfile_Results) Profile() (Profile, error)
- func (s Identity_getProfile_Results) Segment() *capnp.Segment
- func (s Identity_getProfile_Results) SetProfile(v Profile) error
- func (s Identity_getProfile_Results) String() string
- func (s Identity_getProfile_Results) ToPtr() capnp.Ptr
- type Identity_getProfile_Results_Future
- type Identity_getProfile_Results_List
- type Profile
- func (Profile) DecodeFromPtr(p capnp.Ptr) Profile
- func (s Profile) DisplayName() (util.LocalizedText, error)
- func (s Profile) EncodeAsPtr(seg *capnp.Segment) capnp.Ptr
- func (s Profile) HasDisplayName() bool
- func (s Profile) HasPicture() bool
- func (s Profile) HasPreferredHandle() bool
- func (s Profile) IsValid() bool
- func (s Profile) Message() *capnp.Message
- func (s Profile) NewDisplayName() (util.LocalizedText, error)
- func (s Profile) Picture() util.StaticAsset
- func (s Profile) PreferredHandle() (string, error)
- func (s Profile) PreferredHandleBytes() ([]byte, error)
- func (s Profile) Pronouns() Profile_Pronouns
- func (s Profile) Segment() *capnp.Segment
- func (s Profile) SetDisplayName(v util.LocalizedText) error
- func (s Profile) SetPicture(v util.StaticAsset) error
- func (s Profile) SetPreferredHandle(v string) error
- func (s Profile) SetPronouns(v Profile_Pronouns)
- func (s Profile) String() string
- func (s Profile) ToPtr() capnp.Ptr
- type Profile_Future
- type Profile_List
- type Profile_Pronouns
- type Profile_Pronouns_List
- type UserInfo
- func (UserInfo) DecodeFromPtr(p capnp.Ptr) UserInfo
- func (s UserInfo) DeprecatedPermissionsBlob() ([]byte, error)
- func (s UserInfo) DisplayName() (util.LocalizedText, error)
- func (s UserInfo) EncodeAsPtr(seg *capnp.Segment) capnp.Ptr
- func (s UserInfo) HasDeprecatedPermissionsBlob() bool
- func (s UserInfo) HasDisplayName() bool
- func (s UserInfo) HasIdentity() bool
- func (s UserInfo) HasIdentityId() bool
- func (s UserInfo) HasPermissions() bool
- func (s UserInfo) HasPictureUrl() bool
- func (s UserInfo) HasPreferredHandle() bool
- func (s UserInfo) Identity() Identity
- func (s UserInfo) IdentityId() ([]byte, error)
- func (s UserInfo) IsValid() bool
- func (s UserInfo) Message() *capnp.Message
- func (s UserInfo) NewDisplayName() (util.LocalizedText, error)
- func (s UserInfo) NewPermissions(n int32) (capnp.BitList, error)
- func (s UserInfo) Permissions() (capnp.BitList, error)
- func (s UserInfo) PictureUrl() (string, error)
- func (s UserInfo) PictureUrlBytes() ([]byte, error)
- func (s UserInfo) PreferredHandle() (string, error)
- func (s UserInfo) PreferredHandleBytes() ([]byte, error)
- func (s UserInfo) Pronouns() Profile_Pronouns
- func (s UserInfo) Segment() *capnp.Segment
- func (s UserInfo) SetDeprecatedPermissionsBlob(v []byte) error
- func (s UserInfo) SetDisplayName(v util.LocalizedText) error
- func (s UserInfo) SetIdentity(v Identity) error
- func (s UserInfo) SetIdentityId(v []byte) error
- func (s UserInfo) SetPermissions(v capnp.BitList) error
- func (s UserInfo) SetPictureUrl(v string) error
- func (s UserInfo) SetPreferredHandle(v string) error
- func (s UserInfo) SetPronouns(v Profile_Pronouns)
- func (s UserInfo) String() string
- func (s UserInfo) ToPtr() capnp.Ptr
- type UserInfo_Future
- type UserInfo_List
Constants ¶
const Identity_PowerboxTag_TypeID = 0xf35052cfb1d3bbe8
Identity_PowerboxTag_TypeID is the unique identifier for the type Identity_PowerboxTag.
const Identity_TypeID = 0xc084987aa951dd18
Identity_TypeID is the unique identifier for the type Identity.
const Identity_getProfile_Params_TypeID = 0xf32d79a7b575d94c
Identity_getProfile_Params_TypeID is the unique identifier for the type Identity_getProfile_Params.
const Identity_getProfile_Results_TypeID = 0xcd7272b855c92f6d
Identity_getProfile_Results_TypeID is the unique identifier for the type Identity_getProfile_Results.
const Profile_Pronouns_TypeID = 0x84752dcf8539ab01
Profile_Pronouns_TypeID is the unique identifier for the type Profile_Pronouns.
const Profile_TypeID = 0xd3d0c34d7201fcef
Profile_TypeID is the unique identifier for the type Profile.
const UserInfo_TypeID = 0x94b9d1efb35d11d3
UserInfo_TypeID is the unique identifier for the type UserInfo.
Variables ¶
This section is empty.
Functions ¶
func Identity_Methods ¶
func Identity_Methods(methods []server.Method, s Identity_Server) []server.Method
Identity_Methods appends Methods to a slice that invoke the methods on s. This can be used to create a more complicated Server.
func Identity_NewServer ¶
func Identity_NewServer(s Identity_Server) *server.Server
Identity_NewServer creates a new Server from an implementation of Identity_Server.
Types ¶
type Identity ¶
func Identity_ServerToClient ¶
func Identity_ServerToClient(s Identity_Server) Identity
Identity_ServerToClient creates a new Client from an implementation of Identity_Server. The caller is responsible for calling Release on the returned Client.
func (Identity) AddRef ¶
AddRef creates a new Client that refers to the same capability as c. If c is nil or has resolved to null, then AddRef returns nil.
func (Identity) GetFlowLimiter ¶
func (c Identity) GetFlowLimiter() fc.FlowLimiter
Get the current flowcontrol.FlowLimiter used to manage flow control for this client.
func (Identity) GetProfile ¶
func (c Identity) GetProfile(ctx context.Context, params func(Identity_getProfile_Params) error) (Identity_getProfile_Results_Future, capnp.ReleaseFunc)
func (Identity) IsSame ¶
IsSame reports whether c and other refer to a capability created by the same call to NewClient. This can return false negatives if c or other are not fully resolved: use Resolve if this is an issue. If either c or other are released, then IsSame panics.
func (Identity) IsValid ¶
IsValid reports whether c is a valid reference to a capability. A reference is invalid if it is nil, has resolved to null, or has been released.
func (Identity) Release ¶
func (c Identity) Release()
Release releases a capability reference. If this is the last reference to the capability, then the underlying resources associated with the capability will be released.
Release will panic if c has already been released, but not if c is nil or resolved to null.
func (Identity) Resolve ¶
Resolve blocks until the capability is fully resolved or the Context expires.
func (Identity) SetFlowLimiter ¶
func (c Identity) SetFlowLimiter(lim fc.FlowLimiter)
Update the flowcontrol.FlowLimiter used to manage flow control for this client. This affects all future calls, but not calls already waiting to send. Passing nil sets the value to flowcontrol.NopLimiter, which is also the default.
type Identity_List ¶
Identity_List is a list of Identity.
type Identity_PowerboxTag ¶
func NewIdentity_PowerboxTag ¶
func NewIdentity_PowerboxTag(s *capnp.Segment) (Identity_PowerboxTag, error)
func NewRootIdentity_PowerboxTag ¶
func NewRootIdentity_PowerboxTag(s *capnp.Segment) (Identity_PowerboxTag, error)
func ReadRootIdentity_PowerboxTag ¶
func ReadRootIdentity_PowerboxTag(msg *capnp.Message) (Identity_PowerboxTag, error)
func (Identity_PowerboxTag) DecodeFromPtr ¶
func (Identity_PowerboxTag) DecodeFromPtr(p capnp.Ptr) Identity_PowerboxTag
func (Identity_PowerboxTag) EncodeAsPtr ¶
func (s Identity_PowerboxTag) EncodeAsPtr(seg *capnp.Segment) capnp.Ptr
func (Identity_PowerboxTag) HasPermissions ¶
func (s Identity_PowerboxTag) HasPermissions() bool
func (Identity_PowerboxTag) IsValid ¶
func (s Identity_PowerboxTag) IsValid() bool
func (Identity_PowerboxTag) Message ¶
func (s Identity_PowerboxTag) Message() *capnp.Message
func (Identity_PowerboxTag) NewPermissions ¶
func (s Identity_PowerboxTag) NewPermissions(n int32) (capnp.BitList, error)
NewPermissions sets the permissions field to a newly allocated capnp.BitList, preferring placement in s's segment.
func (Identity_PowerboxTag) Permissions ¶
func (s Identity_PowerboxTag) Permissions() (capnp.BitList, error)
func (Identity_PowerboxTag) Segment ¶
func (s Identity_PowerboxTag) Segment() *capnp.Segment
func (Identity_PowerboxTag) SetPermissions ¶
func (s Identity_PowerboxTag) SetPermissions(v capnp.BitList) error
func (Identity_PowerboxTag) String ¶
func (s Identity_PowerboxTag) String() string
func (Identity_PowerboxTag) ToPtr ¶
func (s Identity_PowerboxTag) ToPtr() capnp.Ptr
type Identity_PowerboxTag_Future ¶
Identity_PowerboxTag_Future is a wrapper for a Identity_PowerboxTag promised by a client call.
func (Identity_PowerboxTag_Future) Struct ¶
func (f Identity_PowerboxTag_Future) Struct() (Identity_PowerboxTag, error)
type Identity_PowerboxTag_List ¶
type Identity_PowerboxTag_List = capnp.StructList[Identity_PowerboxTag]
Identity_PowerboxTag_List is a list of Identity_PowerboxTag.
type Identity_Server ¶
type Identity_Server interface {
GetProfile(context.Context, Identity_getProfile) error
}
type Identity_getProfile ¶
Identity_getProfile holds the state for a server call to Identity.getProfile. See server.Call for documentation.
func (Identity_getProfile) AllocResults ¶
func (c Identity_getProfile) AllocResults() (Identity_getProfile_Results, error)
AllocResults allocates the results struct.
func (Identity_getProfile) Args ¶
func (c Identity_getProfile) Args() Identity_getProfile_Params
Args returns the call's arguments.
type Identity_getProfile_Params ¶
func NewIdentity_getProfile_Params ¶
func NewIdentity_getProfile_Params(s *capnp.Segment) (Identity_getProfile_Params, error)
func NewRootIdentity_getProfile_Params ¶
func NewRootIdentity_getProfile_Params(s *capnp.Segment) (Identity_getProfile_Params, error)
func ReadRootIdentity_getProfile_Params ¶
func ReadRootIdentity_getProfile_Params(msg *capnp.Message) (Identity_getProfile_Params, error)
func (Identity_getProfile_Params) DecodeFromPtr ¶
func (Identity_getProfile_Params) DecodeFromPtr(p capnp.Ptr) Identity_getProfile_Params
func (Identity_getProfile_Params) EncodeAsPtr ¶
func (s Identity_getProfile_Params) EncodeAsPtr(seg *capnp.Segment) capnp.Ptr
func (Identity_getProfile_Params) IsValid ¶
func (s Identity_getProfile_Params) IsValid() bool
func (Identity_getProfile_Params) Message ¶
func (s Identity_getProfile_Params) Message() *capnp.Message
func (Identity_getProfile_Params) Segment ¶
func (s Identity_getProfile_Params) Segment() *capnp.Segment
func (Identity_getProfile_Params) String ¶
func (s Identity_getProfile_Params) String() string
func (Identity_getProfile_Params) ToPtr ¶
func (s Identity_getProfile_Params) ToPtr() capnp.Ptr
type Identity_getProfile_Params_Future ¶
Identity_getProfile_Params_Future is a wrapper for a Identity_getProfile_Params promised by a client call.
func (Identity_getProfile_Params_Future) Struct ¶
func (f Identity_getProfile_Params_Future) Struct() (Identity_getProfile_Params, error)
type Identity_getProfile_Params_List ¶
type Identity_getProfile_Params_List = capnp.StructList[Identity_getProfile_Params]
Identity_getProfile_Params_List is a list of Identity_getProfile_Params.
type Identity_getProfile_Results ¶
func NewIdentity_getProfile_Results ¶
func NewIdentity_getProfile_Results(s *capnp.Segment) (Identity_getProfile_Results, error)
func NewRootIdentity_getProfile_Results ¶
func NewRootIdentity_getProfile_Results(s *capnp.Segment) (Identity_getProfile_Results, error)
func ReadRootIdentity_getProfile_Results ¶
func ReadRootIdentity_getProfile_Results(msg *capnp.Message) (Identity_getProfile_Results, error)
func (Identity_getProfile_Results) DecodeFromPtr ¶
func (Identity_getProfile_Results) DecodeFromPtr(p capnp.Ptr) Identity_getProfile_Results
func (Identity_getProfile_Results) EncodeAsPtr ¶
func (s Identity_getProfile_Results) EncodeAsPtr(seg *capnp.Segment) capnp.Ptr
func (Identity_getProfile_Results) HasProfile ¶
func (s Identity_getProfile_Results) HasProfile() bool
func (Identity_getProfile_Results) IsValid ¶
func (s Identity_getProfile_Results) IsValid() bool
func (Identity_getProfile_Results) Message ¶
func (s Identity_getProfile_Results) Message() *capnp.Message
func (Identity_getProfile_Results) NewProfile ¶
func (s Identity_getProfile_Results) NewProfile() (Profile, error)
NewProfile sets the profile field to a newly allocated Profile struct, preferring placement in s's segment.
func (Identity_getProfile_Results) Profile ¶
func (s Identity_getProfile_Results) Profile() (Profile, error)
func (Identity_getProfile_Results) Segment ¶
func (s Identity_getProfile_Results) Segment() *capnp.Segment
func (Identity_getProfile_Results) SetProfile ¶
func (s Identity_getProfile_Results) SetProfile(v Profile) error
func (Identity_getProfile_Results) String ¶
func (s Identity_getProfile_Results) String() string
func (Identity_getProfile_Results) ToPtr ¶
func (s Identity_getProfile_Results) ToPtr() capnp.Ptr
type Identity_getProfile_Results_Future ¶
Identity_getProfile_Results_Future is a wrapper for a Identity_getProfile_Results promised by a client call.
func (Identity_getProfile_Results_Future) Profile ¶
func (p Identity_getProfile_Results_Future) Profile() Profile_Future
func (Identity_getProfile_Results_Future) Struct ¶
func (f Identity_getProfile_Results_Future) Struct() (Identity_getProfile_Results, error)
type Identity_getProfile_Results_List ¶
type Identity_getProfile_Results_List = capnp.StructList[Identity_getProfile_Results]
Identity_getProfile_Results_List is a list of Identity_getProfile_Results.
type Profile ¶
func (Profile) DisplayName ¶
func (s Profile) DisplayName() (util.LocalizedText, error)
func (Profile) NewDisplayName ¶
func (s Profile) NewDisplayName() (util.LocalizedText, error)
NewDisplayName sets the displayName field to a newly allocated util.LocalizedText struct, preferring placement in s's segment.
func (Profile) Picture ¶
func (s Profile) Picture() util.StaticAsset
func (Profile) Pronouns ¶
func (s Profile) Pronouns() Profile_Pronouns
func (Profile) SetDisplayName ¶
func (s Profile) SetDisplayName(v util.LocalizedText) error
func (Profile) SetPicture ¶
func (s Profile) SetPicture(v util.StaticAsset) error
func (Profile) SetPronouns ¶
func (s Profile) SetPronouns(v Profile_Pronouns)
type Profile_Future ¶
Profile_Future is a wrapper for a Profile promised by a client call.
func (Profile_Future) DisplayName ¶
func (p Profile_Future) DisplayName() util.LocalizedText_Future
func (Profile_Future) Picture ¶
func (p Profile_Future) Picture() util.StaticAsset
func (Profile_Future) Struct ¶
func (f Profile_Future) Struct() (Profile, error)
type Profile_List ¶
type Profile_List = capnp.StructList[Profile]
Profile_List is a list of Profile.
type Profile_Pronouns ¶
type Profile_Pronouns uint16
const ( Profile_Pronouns_neutral Profile_Pronouns = 0 Profile_Pronouns_male Profile_Pronouns = 1 Profile_Pronouns_female Profile_Pronouns = 2 Profile_Pronouns_robot Profile_Pronouns = 3 )
Values of Profile_Pronouns.
func Profile_PronounsFromString ¶
func Profile_PronounsFromString(c string) Profile_Pronouns
Profile_PronounsFromString returns the enum value with a name, or the zero value if there's no such value.
func (Profile_Pronouns) String ¶
func (c Profile_Pronouns) String() string
String returns the enum's constant name.
type Profile_Pronouns_List ¶
type Profile_Pronouns_List = capnp.EnumList[Profile_Pronouns]
type UserInfo ¶
func (UserInfo) DeprecatedPermissionsBlob ¶
func (UserInfo) DisplayName ¶
func (s UserInfo) DisplayName() (util.LocalizedText, error)
func (UserInfo) HasDeprecatedPermissionsBlob ¶
func (UserInfo) NewDisplayName ¶
func (s UserInfo) NewDisplayName() (util.LocalizedText, error)
NewDisplayName sets the displayName field to a newly allocated util.LocalizedText struct, preferring placement in s's segment.
func (UserInfo) NewPermissions ¶
NewPermissions sets the permissions field to a newly allocated capnp.BitList, preferring placement in s's segment.
func (UserInfo) Pronouns ¶
func (s UserInfo) Pronouns() Profile_Pronouns
func (UserInfo) SetDeprecatedPermissionsBlob ¶
func (UserInfo) SetDisplayName ¶
func (s UserInfo) SetDisplayName(v util.LocalizedText) error
func (UserInfo) SetPronouns ¶
func (s UserInfo) SetPronouns(v Profile_Pronouns)
type UserInfo_Future ¶
UserInfo_Future is a wrapper for a UserInfo promised by a client call.
func (UserInfo_Future) DisplayName ¶
func (p UserInfo_Future) DisplayName() util.LocalizedText_Future
func (UserInfo_Future) Identity ¶
func (p UserInfo_Future) Identity() Identity
func (UserInfo_Future) Struct ¶
func (f UserInfo_Future) Struct() (UserInfo, error)
type UserInfo_List ¶
type UserInfo_List = capnp.StructList[UserInfo]
UserInfo_List is a list of UserInfo.