Documentation ¶
Index ¶
- Constants
- func NotificationTarget_Methods(methods []server.Method, s NotificationTarget_Server) []server.Method
- func NotificationTarget_NewServer(s NotificationTarget_Server) *server.Server
- func OngoingNotification_Methods(methods []server.Method, s OngoingNotification_Server) []server.Method
- func OngoingNotification_NewServer(s OngoingNotification_Server) *server.Server
- type ActivityEvent
- func (ActivityEvent) DecodeFromPtr(p capnp.Ptr) ActivityEvent
- func (s ActivityEvent) EncodeAsPtr(seg *capnp.Segment) capnp.Ptr
- func (s ActivityEvent) HasNotification() bool
- func (s ActivityEvent) HasPath() bool
- func (s ActivityEvent) HasThread() bool
- func (s ActivityEvent) HasUsers() bool
- func (s ActivityEvent) IsValid() bool
- func (s ActivityEvent) Message() *capnp.Message
- func (s ActivityEvent) NewNotification() (NotificationDisplayInfo, error)
- func (s ActivityEvent) NewThread() (ActivityEvent_ThreadInfo, error)
- func (s ActivityEvent) NewUsers(n int32) (ActivityEvent_User_List, error)
- func (s ActivityEvent) Notification() (NotificationDisplayInfo, error)
- func (s ActivityEvent) Path() (string, error)
- func (s ActivityEvent) PathBytes() ([]byte, error)
- func (s ActivityEvent) Segment() *capnp.Segment
- func (s ActivityEvent) SetNotification(v NotificationDisplayInfo) error
- func (s ActivityEvent) SetPath(v string) error
- func (s ActivityEvent) SetThread(v ActivityEvent_ThreadInfo) error
- func (s ActivityEvent) SetType(v uint16)
- func (s ActivityEvent) SetUsers(v ActivityEvent_User_List) error
- func (s ActivityEvent) String() string
- func (s ActivityEvent) Thread() (ActivityEvent_ThreadInfo, error)
- func (s ActivityEvent) ToPtr() capnp.Ptr
- func (s ActivityEvent) Type() uint16
- func (s ActivityEvent) Users() (ActivityEvent_User_List, error)
- type ActivityEvent_Future
- type ActivityEvent_List
- type ActivityEvent_ThreadInfo
- func (ActivityEvent_ThreadInfo) DecodeFromPtr(p capnp.Ptr) ActivityEvent_ThreadInfo
- func (s ActivityEvent_ThreadInfo) EncodeAsPtr(seg *capnp.Segment) capnp.Ptr
- func (s ActivityEvent_ThreadInfo) HasPath() bool
- func (s ActivityEvent_ThreadInfo) HasTitle() bool
- func (s ActivityEvent_ThreadInfo) IsValid() bool
- func (s ActivityEvent_ThreadInfo) Message() *capnp.Message
- func (s ActivityEvent_ThreadInfo) NewTitle() (util.LocalizedText, error)
- func (s ActivityEvent_ThreadInfo) Path() (string, error)
- func (s ActivityEvent_ThreadInfo) PathBytes() ([]byte, error)
- func (s ActivityEvent_ThreadInfo) Segment() *capnp.Segment
- func (s ActivityEvent_ThreadInfo) SetPath(v string) error
- func (s ActivityEvent_ThreadInfo) SetTitle(v util.LocalizedText) error
- func (s ActivityEvent_ThreadInfo) String() string
- func (s ActivityEvent_ThreadInfo) Title() (util.LocalizedText, error)
- func (s ActivityEvent_ThreadInfo) ToPtr() capnp.Ptr
- type ActivityEvent_ThreadInfo_Future
- type ActivityEvent_ThreadInfo_List
- type ActivityEvent_User
- func (s ActivityEvent_User) CanView() bool
- func (ActivityEvent_User) DecodeFromPtr(p capnp.Ptr) ActivityEvent_User
- func (s ActivityEvent_User) EncodeAsPtr(seg *capnp.Segment) capnp.Ptr
- func (s ActivityEvent_User) HasIdentity() bool
- func (s ActivityEvent_User) Identity() identity.Identity
- func (s ActivityEvent_User) IsValid() bool
- func (s ActivityEvent_User) Mentioned() bool
- func (s ActivityEvent_User) Message() *capnp.Message
- func (s ActivityEvent_User) Segment() *capnp.Segment
- func (s ActivityEvent_User) SetCanView(v bool)
- func (s ActivityEvent_User) SetIdentity(v identity.Identity) error
- func (s ActivityEvent_User) SetMentioned(v bool)
- func (s ActivityEvent_User) SetSubscribed(v bool)
- func (s ActivityEvent_User) String() string
- func (s ActivityEvent_User) Subscribed() bool
- func (s ActivityEvent_User) ToPtr() capnp.Ptr
- type ActivityEvent_User_Future
- type ActivityEvent_User_List
- type ActivityTypeDef
- func (s ActivityTypeDef) AutoSubscribeToGrain() bool
- func (s ActivityTypeDef) AutoSubscribeToThread() bool
- func (ActivityTypeDef) DecodeFromPtr(p capnp.Ptr) ActivityTypeDef
- func (s ActivityTypeDef) Description() (util.LocalizedText, error)
- func (s ActivityTypeDef) EncodeAsPtr(seg *capnp.Segment) capnp.Ptr
- func (s ActivityTypeDef) HasDescription() bool
- func (s ActivityTypeDef) HasName() bool
- func (s ActivityTypeDef) HasVerbPhrase() bool
- func (s ActivityTypeDef) IsValid() bool
- func (s ActivityTypeDef) Message() *capnp.Message
- func (s ActivityTypeDef) Name() (string, error)
- func (s ActivityTypeDef) NameBytes() ([]byte, error)
- func (s ActivityTypeDef) NewDescription() (util.LocalizedText, error)
- func (s ActivityTypeDef) NewVerbPhrase() (util.LocalizedText, error)
- func (s ActivityTypeDef) NotifySubscribers() bool
- func (s ActivityTypeDef) Obsolete() bool
- func (s ActivityTypeDef) RequiredPermission() ActivityTypeDef_requiredPermission
- func (s ActivityTypeDef) Segment() *capnp.Segment
- func (s ActivityTypeDef) SetAutoSubscribeToGrain(v bool)
- func (s ActivityTypeDef) SetAutoSubscribeToThread(v bool)
- func (s ActivityTypeDef) SetDescription(v util.LocalizedText) error
- func (s ActivityTypeDef) SetName(v string) error
- func (s ActivityTypeDef) SetNotifySubscribers(v bool)
- func (s ActivityTypeDef) SetObsolete(v bool)
- func (s ActivityTypeDef) SetSuppressUnread(v bool)
- func (s ActivityTypeDef) SetVerbPhrase(v util.LocalizedText) error
- func (s ActivityTypeDef) String() string
- func (s ActivityTypeDef) SuppressUnread() bool
- func (s ActivityTypeDef) ToPtr() capnp.Ptr
- func (s ActivityTypeDef) VerbPhrase() (util.LocalizedText, error)
- type ActivityTypeDef_Future
- func (p ActivityTypeDef_Future) Description() util.LocalizedText_Future
- func (p ActivityTypeDef_Future) RequiredPermission() ActivityTypeDef_requiredPermission_Future
- func (f ActivityTypeDef_Future) Struct() (ActivityTypeDef, error)
- func (p ActivityTypeDef_Future) VerbPhrase() util.LocalizedText_Future
- type ActivityTypeDef_List
- type ActivityTypeDef_requiredPermission
- func (s ActivityTypeDef_requiredPermission) IsValid() bool
- func (s ActivityTypeDef_requiredPermission) Message() *capnp.Message
- func (s ActivityTypeDef_requiredPermission) PermissionIndex() uint16
- func (s ActivityTypeDef_requiredPermission) Segment() *capnp.Segment
- func (s ActivityTypeDef_requiredPermission) SetEveryone()
- func (s ActivityTypeDef_requiredPermission) SetExplicitList()
- func (s ActivityTypeDef_requiredPermission) SetPermissionIndex(v uint16)
- func (s ActivityTypeDef_requiredPermission) Which() ActivityTypeDef_requiredPermission_Which
- type ActivityTypeDef_requiredPermission_Future
- type ActivityTypeDef_requiredPermission_Which
- type NotificationDisplayInfo
- func (s NotificationDisplayInfo) Caption() (util.LocalizedText, error)
- func (NotificationDisplayInfo) DecodeFromPtr(p capnp.Ptr) NotificationDisplayInfo
- func (s NotificationDisplayInfo) EncodeAsPtr(seg *capnp.Segment) capnp.Ptr
- func (s NotificationDisplayInfo) HasCaption() bool
- func (s NotificationDisplayInfo) IsValid() bool
- func (s NotificationDisplayInfo) Message() *capnp.Message
- func (s NotificationDisplayInfo) NewCaption() (util.LocalizedText, error)
- func (s NotificationDisplayInfo) Segment() *capnp.Segment
- func (s NotificationDisplayInfo) SetCaption(v util.LocalizedText) error
- func (s NotificationDisplayInfo) String() string
- func (s NotificationDisplayInfo) ToPtr() capnp.Ptr
- type NotificationDisplayInfo_Future
- type NotificationDisplayInfo_List
- type NotificationTarget
- func (c NotificationTarget) AddOngoing(ctx context.Context, params func(NotificationTarget_addOngoing_Params) error) (NotificationTarget_addOngoing_Results_Future, capnp.ReleaseFunc)
- func (c NotificationTarget) AddRef() NotificationTarget
- func (NotificationTarget) DecodeFromPtr(p capnp.Ptr) NotificationTarget
- func (c NotificationTarget) EncodeAsPtr(seg *capnp.Segment) capnp.Ptr
- func (c NotificationTarget) GetFlowLimiter() fc.FlowLimiter
- func (c NotificationTarget) IsSame(other NotificationTarget) bool
- func (c NotificationTarget) IsValid() bool
- func (c NotificationTarget) Release()
- func (c NotificationTarget) Resolve(ctx context.Context) error
- func (c NotificationTarget) SetFlowLimiter(lim fc.FlowLimiter)
- func (c NotificationTarget) String() string
- type NotificationTarget_List
- type NotificationTarget_Server
- type NotificationTarget_addOngoing
- type NotificationTarget_addOngoing_Params
- func NewNotificationTarget_addOngoing_Params(s *capnp.Segment) (NotificationTarget_addOngoing_Params, error)
- func NewRootNotificationTarget_addOngoing_Params(s *capnp.Segment) (NotificationTarget_addOngoing_Params, error)
- func ReadRootNotificationTarget_addOngoing_Params(msg *capnp.Message) (NotificationTarget_addOngoing_Params, error)
- func (NotificationTarget_addOngoing_Params) DecodeFromPtr(p capnp.Ptr) NotificationTarget_addOngoing_Params
- func (s NotificationTarget_addOngoing_Params) DisplayInfo() (NotificationDisplayInfo, error)
- func (s NotificationTarget_addOngoing_Params) EncodeAsPtr(seg *capnp.Segment) capnp.Ptr
- func (s NotificationTarget_addOngoing_Params) HasDisplayInfo() bool
- func (s NotificationTarget_addOngoing_Params) HasNotification() bool
- func (s NotificationTarget_addOngoing_Params) IsValid() bool
- func (s NotificationTarget_addOngoing_Params) Message() *capnp.Message
- func (s NotificationTarget_addOngoing_Params) NewDisplayInfo() (NotificationDisplayInfo, error)
- func (s NotificationTarget_addOngoing_Params) Notification() OngoingNotification
- func (s NotificationTarget_addOngoing_Params) Segment() *capnp.Segment
- func (s NotificationTarget_addOngoing_Params) SetDisplayInfo(v NotificationDisplayInfo) error
- func (s NotificationTarget_addOngoing_Params) SetNotification(v OngoingNotification) error
- func (s NotificationTarget_addOngoing_Params) String() string
- func (s NotificationTarget_addOngoing_Params) ToPtr() capnp.Ptr
- type NotificationTarget_addOngoing_Params_Future
- type NotificationTarget_addOngoing_Params_List
- type NotificationTarget_addOngoing_Results
- func NewNotificationTarget_addOngoing_Results(s *capnp.Segment) (NotificationTarget_addOngoing_Results, error)
- func NewRootNotificationTarget_addOngoing_Results(s *capnp.Segment) (NotificationTarget_addOngoing_Results, error)
- func ReadRootNotificationTarget_addOngoing_Results(msg *capnp.Message) (NotificationTarget_addOngoing_Results, error)
- func (NotificationTarget_addOngoing_Results) DecodeFromPtr(p capnp.Ptr) NotificationTarget_addOngoing_Results
- func (s NotificationTarget_addOngoing_Results) EncodeAsPtr(seg *capnp.Segment) capnp.Ptr
- func (s NotificationTarget_addOngoing_Results) Handle() util.Handle
- func (s NotificationTarget_addOngoing_Results) HasHandle() bool
- func (s NotificationTarget_addOngoing_Results) IsValid() bool
- func (s NotificationTarget_addOngoing_Results) Message() *capnp.Message
- func (s NotificationTarget_addOngoing_Results) Segment() *capnp.Segment
- func (s NotificationTarget_addOngoing_Results) SetHandle(v util.Handle) error
- func (s NotificationTarget_addOngoing_Results) String() string
- func (s NotificationTarget_addOngoing_Results) ToPtr() capnp.Ptr
- type NotificationTarget_addOngoing_Results_Future
- type NotificationTarget_addOngoing_Results_List
- type OngoingNotification
- func (c OngoingNotification) AddRef() OngoingNotification
- func (c OngoingNotification) Cancel(ctx context.Context, params func(OngoingNotification_cancel_Params) error) (OngoingNotification_cancel_Results_Future, capnp.ReleaseFunc)
- func (OngoingNotification) DecodeFromPtr(p capnp.Ptr) OngoingNotification
- func (c OngoingNotification) EncodeAsPtr(seg *capnp.Segment) capnp.Ptr
- func (c OngoingNotification) GetFlowLimiter() fc.FlowLimiter
- func (c OngoingNotification) IsSame(other OngoingNotification) bool
- func (c OngoingNotification) IsValid() bool
- func (c OngoingNotification) Release()
- func (c OngoingNotification) Resolve(ctx context.Context) error
- func (c OngoingNotification) SetFlowLimiter(lim fc.FlowLimiter)
- func (c OngoingNotification) String() string
- type OngoingNotification_List
- type OngoingNotification_Server
- type OngoingNotification_cancel
- type OngoingNotification_cancel_Params
- func NewOngoingNotification_cancel_Params(s *capnp.Segment) (OngoingNotification_cancel_Params, error)
- func NewRootOngoingNotification_cancel_Params(s *capnp.Segment) (OngoingNotification_cancel_Params, error)
- func ReadRootOngoingNotification_cancel_Params(msg *capnp.Message) (OngoingNotification_cancel_Params, error)
- func (OngoingNotification_cancel_Params) DecodeFromPtr(p capnp.Ptr) OngoingNotification_cancel_Params
- func (s OngoingNotification_cancel_Params) EncodeAsPtr(seg *capnp.Segment) capnp.Ptr
- func (s OngoingNotification_cancel_Params) IsValid() bool
- func (s OngoingNotification_cancel_Params) Message() *capnp.Message
- func (s OngoingNotification_cancel_Params) Segment() *capnp.Segment
- func (s OngoingNotification_cancel_Params) String() string
- func (s OngoingNotification_cancel_Params) ToPtr() capnp.Ptr
- type OngoingNotification_cancel_Params_Future
- type OngoingNotification_cancel_Params_List
- type OngoingNotification_cancel_Results
- func NewOngoingNotification_cancel_Results(s *capnp.Segment) (OngoingNotification_cancel_Results, error)
- func NewRootOngoingNotification_cancel_Results(s *capnp.Segment) (OngoingNotification_cancel_Results, error)
- func ReadRootOngoingNotification_cancel_Results(msg *capnp.Message) (OngoingNotification_cancel_Results, error)
- func (OngoingNotification_cancel_Results) DecodeFromPtr(p capnp.Ptr) OngoingNotification_cancel_Results
- func (s OngoingNotification_cancel_Results) EncodeAsPtr(seg *capnp.Segment) capnp.Ptr
- func (s OngoingNotification_cancel_Results) IsValid() bool
- func (s OngoingNotification_cancel_Results) Message() *capnp.Message
- func (s OngoingNotification_cancel_Results) Segment() *capnp.Segment
- func (s OngoingNotification_cancel_Results) String() string
- func (s OngoingNotification_cancel_Results) ToPtr() capnp.Ptr
- type OngoingNotification_cancel_Results_Future
- type OngoingNotification_cancel_Results_List
Constants ¶
const ActivityEvent_ThreadInfo_TypeID = 0xf3902b5a86ffba44
ActivityEvent_ThreadInfo_TypeID is the unique identifier for the type ActivityEvent_ThreadInfo.
const ActivityEvent_TypeID = 0xa7c0b6eaa98c6c4b
ActivityEvent_TypeID is the unique identifier for the type ActivityEvent.
const ActivityEvent_User_TypeID = 0xbb4d119bbcd89677
ActivityEvent_User_TypeID is the unique identifier for the type ActivityEvent_User.
const ActivityTypeDef_TypeID = 0xe638de0ad7c89a2b
ActivityTypeDef_TypeID is the unique identifier for the type ActivityTypeDef.
const NotificationDisplayInfo_TypeID = 0xd3b9f2ca42d4f783
NotificationDisplayInfo_TypeID is the unique identifier for the type NotificationDisplayInfo.
const NotificationTarget_TypeID = 0xf0f87337d73020f0
NotificationTarget_TypeID is the unique identifier for the type NotificationTarget.
const NotificationTarget_addOngoing_Params_TypeID = 0xdaaca64376c9033a
NotificationTarget_addOngoing_Params_TypeID is the unique identifier for the type NotificationTarget_addOngoing_Params.
const NotificationTarget_addOngoing_Results_TypeID = 0xee4cbafe4028d3c2
NotificationTarget_addOngoing_Results_TypeID is the unique identifier for the type NotificationTarget_addOngoing_Results.
const OngoingNotification_TypeID = 0xfe851ddbb88940cd
OngoingNotification_TypeID is the unique identifier for the type OngoingNotification.
const OngoingNotification_cancel_Params_TypeID = 0xf1d1cb82a830948b
OngoingNotification_cancel_Params_TypeID is the unique identifier for the type OngoingNotification_cancel_Params.
const OngoingNotification_cancel_Results_TypeID = 0xf81453d4b819e209
OngoingNotification_cancel_Results_TypeID is the unique identifier for the type OngoingNotification_cancel_Results.
Variables ¶
This section is empty.
Functions ¶
func NotificationTarget_Methods ¶
func NotificationTarget_Methods(methods []server.Method, s NotificationTarget_Server) []server.Method
NotificationTarget_Methods appends Methods to a slice that invoke the methods on s. This can be used to create a more complicated Server.
func NotificationTarget_NewServer ¶
func NotificationTarget_NewServer(s NotificationTarget_Server) *server.Server
NotificationTarget_NewServer creates a new Server from an implementation of NotificationTarget_Server.
func OngoingNotification_Methods ¶
func OngoingNotification_Methods(methods []server.Method, s OngoingNotification_Server) []server.Method
OngoingNotification_Methods appends Methods to a slice that invoke the methods on s. This can be used to create a more complicated Server.
func OngoingNotification_NewServer ¶
func OngoingNotification_NewServer(s OngoingNotification_Server) *server.Server
OngoingNotification_NewServer creates a new Server from an implementation of OngoingNotification_Server.
Types ¶
type ActivityEvent ¶
func NewActivityEvent ¶
func NewActivityEvent(s *capnp.Segment) (ActivityEvent, error)
func NewRootActivityEvent ¶
func NewRootActivityEvent(s *capnp.Segment) (ActivityEvent, error)
func ReadRootActivityEvent ¶
func ReadRootActivityEvent(msg *capnp.Message) (ActivityEvent, error)
func (ActivityEvent) DecodeFromPtr ¶
func (ActivityEvent) DecodeFromPtr(p capnp.Ptr) ActivityEvent
func (ActivityEvent) HasNotification ¶
func (s ActivityEvent) HasNotification() bool
func (ActivityEvent) HasPath ¶
func (s ActivityEvent) HasPath() bool
func (ActivityEvent) HasThread ¶
func (s ActivityEvent) HasThread() bool
func (ActivityEvent) HasUsers ¶
func (s ActivityEvent) HasUsers() bool
func (ActivityEvent) IsValid ¶
func (s ActivityEvent) IsValid() bool
func (ActivityEvent) Message ¶
func (s ActivityEvent) Message() *capnp.Message
func (ActivityEvent) NewNotification ¶
func (s ActivityEvent) NewNotification() (NotificationDisplayInfo, error)
NewNotification sets the notification field to a newly allocated NotificationDisplayInfo struct, preferring placement in s's segment.
func (ActivityEvent) NewThread ¶
func (s ActivityEvent) NewThread() (ActivityEvent_ThreadInfo, error)
NewThread sets the thread field to a newly allocated ActivityEvent_ThreadInfo struct, preferring placement in s's segment.
func (ActivityEvent) NewUsers ¶
func (s ActivityEvent) NewUsers(n int32) (ActivityEvent_User_List, error)
NewUsers sets the users field to a newly allocated ActivityEvent_User_List, preferring placement in s's segment.
func (ActivityEvent) Notification ¶
func (s ActivityEvent) Notification() (NotificationDisplayInfo, error)
func (ActivityEvent) Path ¶
func (s ActivityEvent) Path() (string, error)
func (ActivityEvent) PathBytes ¶
func (s ActivityEvent) PathBytes() ([]byte, error)
func (ActivityEvent) Segment ¶
func (s ActivityEvent) Segment() *capnp.Segment
func (ActivityEvent) SetNotification ¶
func (s ActivityEvent) SetNotification(v NotificationDisplayInfo) error
func (ActivityEvent) SetPath ¶
func (s ActivityEvent) SetPath(v string) error
func (ActivityEvent) SetThread ¶
func (s ActivityEvent) SetThread(v ActivityEvent_ThreadInfo) error
func (ActivityEvent) SetType ¶
func (s ActivityEvent) SetType(v uint16)
func (ActivityEvent) SetUsers ¶
func (s ActivityEvent) SetUsers(v ActivityEvent_User_List) error
func (ActivityEvent) String ¶
func (s ActivityEvent) String() string
func (ActivityEvent) Thread ¶
func (s ActivityEvent) Thread() (ActivityEvent_ThreadInfo, error)
func (ActivityEvent) ToPtr ¶
func (s ActivityEvent) ToPtr() capnp.Ptr
func (ActivityEvent) Type ¶
func (s ActivityEvent) Type() uint16
func (ActivityEvent) Users ¶
func (s ActivityEvent) Users() (ActivityEvent_User_List, error)
type ActivityEvent_Future ¶
ActivityEvent_Future is a wrapper for a ActivityEvent promised by a client call.
func (ActivityEvent_Future) Notification ¶
func (p ActivityEvent_Future) Notification() NotificationDisplayInfo_Future
func (ActivityEvent_Future) Struct ¶
func (f ActivityEvent_Future) Struct() (ActivityEvent, error)
func (ActivityEvent_Future) Thread ¶
func (p ActivityEvent_Future) Thread() ActivityEvent_ThreadInfo_Future
type ActivityEvent_List ¶
type ActivityEvent_List = capnp.StructList[ActivityEvent]
ActivityEvent_List is a list of ActivityEvent.
type ActivityEvent_ThreadInfo ¶
func NewActivityEvent_ThreadInfo ¶
func NewActivityEvent_ThreadInfo(s *capnp.Segment) (ActivityEvent_ThreadInfo, error)
func NewRootActivityEvent_ThreadInfo ¶
func NewRootActivityEvent_ThreadInfo(s *capnp.Segment) (ActivityEvent_ThreadInfo, error)
func ReadRootActivityEvent_ThreadInfo ¶
func ReadRootActivityEvent_ThreadInfo(msg *capnp.Message) (ActivityEvent_ThreadInfo, error)
func (ActivityEvent_ThreadInfo) DecodeFromPtr ¶
func (ActivityEvent_ThreadInfo) DecodeFromPtr(p capnp.Ptr) ActivityEvent_ThreadInfo
func (ActivityEvent_ThreadInfo) EncodeAsPtr ¶
func (s ActivityEvent_ThreadInfo) EncodeAsPtr(seg *capnp.Segment) capnp.Ptr
func (ActivityEvent_ThreadInfo) HasPath ¶
func (s ActivityEvent_ThreadInfo) HasPath() bool
func (ActivityEvent_ThreadInfo) HasTitle ¶
func (s ActivityEvent_ThreadInfo) HasTitle() bool
func (ActivityEvent_ThreadInfo) IsValid ¶
func (s ActivityEvent_ThreadInfo) IsValid() bool
func (ActivityEvent_ThreadInfo) Message ¶
func (s ActivityEvent_ThreadInfo) Message() *capnp.Message
func (ActivityEvent_ThreadInfo) NewTitle ¶
func (s ActivityEvent_ThreadInfo) NewTitle() (util.LocalizedText, error)
NewTitle sets the title field to a newly allocated util.LocalizedText struct, preferring placement in s's segment.
func (ActivityEvent_ThreadInfo) Path ¶
func (s ActivityEvent_ThreadInfo) Path() (string, error)
func (ActivityEvent_ThreadInfo) PathBytes ¶
func (s ActivityEvent_ThreadInfo) PathBytes() ([]byte, error)
func (ActivityEvent_ThreadInfo) Segment ¶
func (s ActivityEvent_ThreadInfo) Segment() *capnp.Segment
func (ActivityEvent_ThreadInfo) SetPath ¶
func (s ActivityEvent_ThreadInfo) SetPath(v string) error
func (ActivityEvent_ThreadInfo) SetTitle ¶
func (s ActivityEvent_ThreadInfo) SetTitle(v util.LocalizedText) error
func (ActivityEvent_ThreadInfo) String ¶
func (s ActivityEvent_ThreadInfo) String() string
func (ActivityEvent_ThreadInfo) Title ¶
func (s ActivityEvent_ThreadInfo) Title() (util.LocalizedText, error)
func (ActivityEvent_ThreadInfo) ToPtr ¶
func (s ActivityEvent_ThreadInfo) ToPtr() capnp.Ptr
type ActivityEvent_ThreadInfo_Future ¶
ActivityEvent_ThreadInfo_Future is a wrapper for a ActivityEvent_ThreadInfo promised by a client call.
func (ActivityEvent_ThreadInfo_Future) Struct ¶
func (f ActivityEvent_ThreadInfo_Future) Struct() (ActivityEvent_ThreadInfo, error)
func (ActivityEvent_ThreadInfo_Future) Title ¶
func (p ActivityEvent_ThreadInfo_Future) Title() util.LocalizedText_Future
type ActivityEvent_ThreadInfo_List ¶
type ActivityEvent_ThreadInfo_List = capnp.StructList[ActivityEvent_ThreadInfo]
ActivityEvent_ThreadInfo_List is a list of ActivityEvent_ThreadInfo.
type ActivityEvent_User ¶
func NewActivityEvent_User ¶
func NewActivityEvent_User(s *capnp.Segment) (ActivityEvent_User, error)
func NewRootActivityEvent_User ¶
func NewRootActivityEvent_User(s *capnp.Segment) (ActivityEvent_User, error)
func ReadRootActivityEvent_User ¶
func ReadRootActivityEvent_User(msg *capnp.Message) (ActivityEvent_User, error)
func (ActivityEvent_User) CanView ¶
func (s ActivityEvent_User) CanView() bool
func (ActivityEvent_User) DecodeFromPtr ¶
func (ActivityEvent_User) DecodeFromPtr(p capnp.Ptr) ActivityEvent_User
func (ActivityEvent_User) EncodeAsPtr ¶
func (s ActivityEvent_User) EncodeAsPtr(seg *capnp.Segment) capnp.Ptr
func (ActivityEvent_User) HasIdentity ¶
func (s ActivityEvent_User) HasIdentity() bool
func (ActivityEvent_User) Identity ¶
func (s ActivityEvent_User) Identity() identity.Identity
func (ActivityEvent_User) IsValid ¶
func (s ActivityEvent_User) IsValid() bool
func (ActivityEvent_User) Mentioned ¶
func (s ActivityEvent_User) Mentioned() bool
func (ActivityEvent_User) Message ¶
func (s ActivityEvent_User) Message() *capnp.Message
func (ActivityEvent_User) Segment ¶
func (s ActivityEvent_User) Segment() *capnp.Segment
func (ActivityEvent_User) SetCanView ¶
func (s ActivityEvent_User) SetCanView(v bool)
func (ActivityEvent_User) SetIdentity ¶
func (s ActivityEvent_User) SetIdentity(v identity.Identity) error
func (ActivityEvent_User) SetMentioned ¶
func (s ActivityEvent_User) SetMentioned(v bool)
func (ActivityEvent_User) SetSubscribed ¶
func (s ActivityEvent_User) SetSubscribed(v bool)
func (ActivityEvent_User) String ¶
func (s ActivityEvent_User) String() string
func (ActivityEvent_User) Subscribed ¶
func (s ActivityEvent_User) Subscribed() bool
func (ActivityEvent_User) ToPtr ¶
func (s ActivityEvent_User) ToPtr() capnp.Ptr
type ActivityEvent_User_Future ¶
ActivityEvent_User_Future is a wrapper for a ActivityEvent_User promised by a client call.
func (ActivityEvent_User_Future) Identity ¶
func (p ActivityEvent_User_Future) Identity() identity.Identity
func (ActivityEvent_User_Future) Struct ¶
func (f ActivityEvent_User_Future) Struct() (ActivityEvent_User, error)
type ActivityEvent_User_List ¶
type ActivityEvent_User_List = capnp.StructList[ActivityEvent_User]
ActivityEvent_User_List is a list of ActivityEvent_User.
type ActivityTypeDef ¶
func NewActivityTypeDef ¶
func NewActivityTypeDef(s *capnp.Segment) (ActivityTypeDef, error)
func NewRootActivityTypeDef ¶
func NewRootActivityTypeDef(s *capnp.Segment) (ActivityTypeDef, error)
func ReadRootActivityTypeDef ¶
func ReadRootActivityTypeDef(msg *capnp.Message) (ActivityTypeDef, error)
func (ActivityTypeDef) AutoSubscribeToGrain ¶
func (s ActivityTypeDef) AutoSubscribeToGrain() bool
func (ActivityTypeDef) AutoSubscribeToThread ¶
func (s ActivityTypeDef) AutoSubscribeToThread() bool
func (ActivityTypeDef) DecodeFromPtr ¶
func (ActivityTypeDef) DecodeFromPtr(p capnp.Ptr) ActivityTypeDef
func (ActivityTypeDef) Description ¶
func (s ActivityTypeDef) Description() (util.LocalizedText, error)
func (ActivityTypeDef) EncodeAsPtr ¶
func (s ActivityTypeDef) EncodeAsPtr(seg *capnp.Segment) capnp.Ptr
func (ActivityTypeDef) HasDescription ¶
func (s ActivityTypeDef) HasDescription() bool
func (ActivityTypeDef) HasName ¶
func (s ActivityTypeDef) HasName() bool
func (ActivityTypeDef) HasVerbPhrase ¶
func (s ActivityTypeDef) HasVerbPhrase() bool
func (ActivityTypeDef) IsValid ¶
func (s ActivityTypeDef) IsValid() bool
func (ActivityTypeDef) Message ¶
func (s ActivityTypeDef) Message() *capnp.Message
func (ActivityTypeDef) Name ¶
func (s ActivityTypeDef) Name() (string, error)
func (ActivityTypeDef) NameBytes ¶
func (s ActivityTypeDef) NameBytes() ([]byte, error)
func (ActivityTypeDef) NewDescription ¶
func (s ActivityTypeDef) NewDescription() (util.LocalizedText, error)
NewDescription sets the description field to a newly allocated util.LocalizedText struct, preferring placement in s's segment.
func (ActivityTypeDef) NewVerbPhrase ¶
func (s ActivityTypeDef) NewVerbPhrase() (util.LocalizedText, error)
NewVerbPhrase sets the verbPhrase field to a newly allocated util.LocalizedText struct, preferring placement in s's segment.
func (ActivityTypeDef) NotifySubscribers ¶
func (s ActivityTypeDef) NotifySubscribers() bool
func (ActivityTypeDef) Obsolete ¶
func (s ActivityTypeDef) Obsolete() bool
func (ActivityTypeDef) RequiredPermission ¶
func (s ActivityTypeDef) RequiredPermission() ActivityTypeDef_requiredPermission
func (ActivityTypeDef) Segment ¶
func (s ActivityTypeDef) Segment() *capnp.Segment
func (ActivityTypeDef) SetAutoSubscribeToGrain ¶
func (s ActivityTypeDef) SetAutoSubscribeToGrain(v bool)
func (ActivityTypeDef) SetAutoSubscribeToThread ¶
func (s ActivityTypeDef) SetAutoSubscribeToThread(v bool)
func (ActivityTypeDef) SetDescription ¶
func (s ActivityTypeDef) SetDescription(v util.LocalizedText) error
func (ActivityTypeDef) SetName ¶
func (s ActivityTypeDef) SetName(v string) error
func (ActivityTypeDef) SetNotifySubscribers ¶
func (s ActivityTypeDef) SetNotifySubscribers(v bool)
func (ActivityTypeDef) SetObsolete ¶
func (s ActivityTypeDef) SetObsolete(v bool)
func (ActivityTypeDef) SetSuppressUnread ¶
func (s ActivityTypeDef) SetSuppressUnread(v bool)
func (ActivityTypeDef) SetVerbPhrase ¶
func (s ActivityTypeDef) SetVerbPhrase(v util.LocalizedText) error
func (ActivityTypeDef) String ¶
func (s ActivityTypeDef) String() string
func (ActivityTypeDef) SuppressUnread ¶
func (s ActivityTypeDef) SuppressUnread() bool
func (ActivityTypeDef) ToPtr ¶
func (s ActivityTypeDef) ToPtr() capnp.Ptr
func (ActivityTypeDef) VerbPhrase ¶
func (s ActivityTypeDef) VerbPhrase() (util.LocalizedText, error)
type ActivityTypeDef_Future ¶
ActivityTypeDef_Future is a wrapper for a ActivityTypeDef promised by a client call.
func (ActivityTypeDef_Future) Description ¶
func (p ActivityTypeDef_Future) Description() util.LocalizedText_Future
func (ActivityTypeDef_Future) RequiredPermission ¶
func (p ActivityTypeDef_Future) RequiredPermission() ActivityTypeDef_requiredPermission_Future
func (ActivityTypeDef_Future) Struct ¶
func (f ActivityTypeDef_Future) Struct() (ActivityTypeDef, error)
func (ActivityTypeDef_Future) VerbPhrase ¶
func (p ActivityTypeDef_Future) VerbPhrase() util.LocalizedText_Future
type ActivityTypeDef_List ¶
type ActivityTypeDef_List = capnp.StructList[ActivityTypeDef]
ActivityTypeDef_List is a list of ActivityTypeDef.
type ActivityTypeDef_requiredPermission ¶
type ActivityTypeDef_requiredPermission ActivityTypeDef
func (ActivityTypeDef_requiredPermission) IsValid ¶
func (s ActivityTypeDef_requiredPermission) IsValid() bool
func (ActivityTypeDef_requiredPermission) Message ¶
func (s ActivityTypeDef_requiredPermission) Message() *capnp.Message
func (ActivityTypeDef_requiredPermission) PermissionIndex ¶
func (s ActivityTypeDef_requiredPermission) PermissionIndex() uint16
func (ActivityTypeDef_requiredPermission) Segment ¶
func (s ActivityTypeDef_requiredPermission) Segment() *capnp.Segment
func (ActivityTypeDef_requiredPermission) SetEveryone ¶
func (s ActivityTypeDef_requiredPermission) SetEveryone()
func (ActivityTypeDef_requiredPermission) SetExplicitList ¶
func (s ActivityTypeDef_requiredPermission) SetExplicitList()
func (ActivityTypeDef_requiredPermission) SetPermissionIndex ¶
func (s ActivityTypeDef_requiredPermission) SetPermissionIndex(v uint16)
func (ActivityTypeDef_requiredPermission) Which ¶
type ActivityTypeDef_requiredPermission_Future ¶
ActivityTypeDef_requiredPermission_Future is a wrapper for a ActivityTypeDef_requiredPermission promised by a client call.
func (ActivityTypeDef_requiredPermission_Future) Struct ¶
func (f ActivityTypeDef_requiredPermission_Future) Struct() (ActivityTypeDef_requiredPermission, error)
type ActivityTypeDef_requiredPermission_Which ¶
type ActivityTypeDef_requiredPermission_Which uint16
const ( ActivityTypeDef_requiredPermission_Which_everyone ActivityTypeDef_requiredPermission_Which = 0 ActivityTypeDef_requiredPermission_Which_permissionIndex ActivityTypeDef_requiredPermission_Which = 1 ActivityTypeDef_requiredPermission_Which_explicitList ActivityTypeDef_requiredPermission_Which = 2 )
func (ActivityTypeDef_requiredPermission_Which) String ¶
func (w ActivityTypeDef_requiredPermission_Which) String() string
type NotificationDisplayInfo ¶
func NewNotificationDisplayInfo ¶
func NewNotificationDisplayInfo(s *capnp.Segment) (NotificationDisplayInfo, error)
func NewRootNotificationDisplayInfo ¶
func NewRootNotificationDisplayInfo(s *capnp.Segment) (NotificationDisplayInfo, error)
func ReadRootNotificationDisplayInfo ¶
func ReadRootNotificationDisplayInfo(msg *capnp.Message) (NotificationDisplayInfo, error)
func (NotificationDisplayInfo) Caption ¶
func (s NotificationDisplayInfo) Caption() (util.LocalizedText, error)
func (NotificationDisplayInfo) DecodeFromPtr ¶
func (NotificationDisplayInfo) DecodeFromPtr(p capnp.Ptr) NotificationDisplayInfo
func (NotificationDisplayInfo) EncodeAsPtr ¶
func (s NotificationDisplayInfo) EncodeAsPtr(seg *capnp.Segment) capnp.Ptr
func (NotificationDisplayInfo) HasCaption ¶
func (s NotificationDisplayInfo) HasCaption() bool
func (NotificationDisplayInfo) IsValid ¶
func (s NotificationDisplayInfo) IsValid() bool
func (NotificationDisplayInfo) Message ¶
func (s NotificationDisplayInfo) Message() *capnp.Message
func (NotificationDisplayInfo) NewCaption ¶
func (s NotificationDisplayInfo) NewCaption() (util.LocalizedText, error)
NewCaption sets the caption field to a newly allocated util.LocalizedText struct, preferring placement in s's segment.
func (NotificationDisplayInfo) Segment ¶
func (s NotificationDisplayInfo) Segment() *capnp.Segment
func (NotificationDisplayInfo) SetCaption ¶
func (s NotificationDisplayInfo) SetCaption(v util.LocalizedText) error
func (NotificationDisplayInfo) String ¶
func (s NotificationDisplayInfo) String() string
func (NotificationDisplayInfo) ToPtr ¶
func (s NotificationDisplayInfo) ToPtr() capnp.Ptr
type NotificationDisplayInfo_Future ¶
NotificationDisplayInfo_Future is a wrapper for a NotificationDisplayInfo promised by a client call.
func (NotificationDisplayInfo_Future) Caption ¶
func (p NotificationDisplayInfo_Future) Caption() util.LocalizedText_Future
func (NotificationDisplayInfo_Future) Struct ¶
func (f NotificationDisplayInfo_Future) Struct() (NotificationDisplayInfo, error)
type NotificationDisplayInfo_List ¶
type NotificationDisplayInfo_List = capnp.StructList[NotificationDisplayInfo]
NotificationDisplayInfo_List is a list of NotificationDisplayInfo.
type NotificationTarget ¶
func NotificationTarget_ServerToClient ¶
func NotificationTarget_ServerToClient(s NotificationTarget_Server) NotificationTarget
NotificationTarget_ServerToClient creates a new Client from an implementation of NotificationTarget_Server. The caller is responsible for calling Release on the returned Client.
func (NotificationTarget) AddOngoing ¶
func (c NotificationTarget) AddOngoing(ctx context.Context, params func(NotificationTarget_addOngoing_Params) error) (NotificationTarget_addOngoing_Results_Future, capnp.ReleaseFunc)
func (NotificationTarget) AddRef ¶
func (c NotificationTarget) AddRef() NotificationTarget
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 (NotificationTarget) DecodeFromPtr ¶
func (NotificationTarget) DecodeFromPtr(p capnp.Ptr) NotificationTarget
func (NotificationTarget) EncodeAsPtr ¶
func (c NotificationTarget) EncodeAsPtr(seg *capnp.Segment) capnp.Ptr
func (NotificationTarget) GetFlowLimiter ¶
func (c NotificationTarget) GetFlowLimiter() fc.FlowLimiter
Get the current flowcontrol.FlowLimiter used to manage flow control for this client.
func (NotificationTarget) IsSame ¶
func (c NotificationTarget) IsSame(other NotificationTarget) bool
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 (NotificationTarget) IsValid ¶
func (c NotificationTarget) IsValid() bool
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 (NotificationTarget) Release ¶
func (c NotificationTarget) 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 (NotificationTarget) Resolve ¶
func (c NotificationTarget) Resolve(ctx context.Context) error
Resolve blocks until the capability is fully resolved or the Context expires.
func (NotificationTarget) SetFlowLimiter ¶
func (c NotificationTarget) 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.
func (NotificationTarget) String ¶
func (c NotificationTarget) String() string
String returns a string that identifies this capability for debugging purposes. Its format should not be depended on: in particular, it should not be used to compare clients. Use IsSame to compare clients for equality.
type NotificationTarget_List ¶
type NotificationTarget_List = capnp.CapList[NotificationTarget]
NotificationTarget_List is a list of NotificationTarget.
type NotificationTarget_Server ¶
type NotificationTarget_Server interface {
AddOngoing(context.Context, NotificationTarget_addOngoing) error
}
type NotificationTarget_addOngoing ¶
NotificationTarget_addOngoing holds the state for a server call to NotificationTarget.addOngoing. See server.Call for documentation.
func (NotificationTarget_addOngoing) AllocResults ¶
func (c NotificationTarget_addOngoing) AllocResults() (NotificationTarget_addOngoing_Results, error)
AllocResults allocates the results struct.
func (NotificationTarget_addOngoing) Args ¶
func (c NotificationTarget_addOngoing) Args() NotificationTarget_addOngoing_Params
Args returns the call's arguments.
type NotificationTarget_addOngoing_Params ¶
func NewNotificationTarget_addOngoing_Params ¶
func NewNotificationTarget_addOngoing_Params(s *capnp.Segment) (NotificationTarget_addOngoing_Params, error)
func NewRootNotificationTarget_addOngoing_Params ¶
func NewRootNotificationTarget_addOngoing_Params(s *capnp.Segment) (NotificationTarget_addOngoing_Params, error)
func ReadRootNotificationTarget_addOngoing_Params ¶
func ReadRootNotificationTarget_addOngoing_Params(msg *capnp.Message) (NotificationTarget_addOngoing_Params, error)
func (NotificationTarget_addOngoing_Params) DecodeFromPtr ¶
func (NotificationTarget_addOngoing_Params) DecodeFromPtr(p capnp.Ptr) NotificationTarget_addOngoing_Params
func (NotificationTarget_addOngoing_Params) DisplayInfo ¶
func (s NotificationTarget_addOngoing_Params) DisplayInfo() (NotificationDisplayInfo, error)
func (NotificationTarget_addOngoing_Params) EncodeAsPtr ¶
func (s NotificationTarget_addOngoing_Params) EncodeAsPtr(seg *capnp.Segment) capnp.Ptr
func (NotificationTarget_addOngoing_Params) HasDisplayInfo ¶
func (s NotificationTarget_addOngoing_Params) HasDisplayInfo() bool
func (NotificationTarget_addOngoing_Params) HasNotification ¶
func (s NotificationTarget_addOngoing_Params) HasNotification() bool
func (NotificationTarget_addOngoing_Params) IsValid ¶
func (s NotificationTarget_addOngoing_Params) IsValid() bool
func (NotificationTarget_addOngoing_Params) Message ¶
func (s NotificationTarget_addOngoing_Params) Message() *capnp.Message
func (NotificationTarget_addOngoing_Params) NewDisplayInfo ¶
func (s NotificationTarget_addOngoing_Params) NewDisplayInfo() (NotificationDisplayInfo, error)
NewDisplayInfo sets the displayInfo field to a newly allocated NotificationDisplayInfo struct, preferring placement in s's segment.
func (NotificationTarget_addOngoing_Params) Notification ¶
func (s NotificationTarget_addOngoing_Params) Notification() OngoingNotification
func (NotificationTarget_addOngoing_Params) Segment ¶
func (s NotificationTarget_addOngoing_Params) Segment() *capnp.Segment
func (NotificationTarget_addOngoing_Params) SetDisplayInfo ¶
func (s NotificationTarget_addOngoing_Params) SetDisplayInfo(v NotificationDisplayInfo) error
func (NotificationTarget_addOngoing_Params) SetNotification ¶
func (s NotificationTarget_addOngoing_Params) SetNotification(v OngoingNotification) error
func (NotificationTarget_addOngoing_Params) String ¶
func (s NotificationTarget_addOngoing_Params) String() string
func (NotificationTarget_addOngoing_Params) ToPtr ¶
func (s NotificationTarget_addOngoing_Params) ToPtr() capnp.Ptr
type NotificationTarget_addOngoing_Params_Future ¶
NotificationTarget_addOngoing_Params_Future is a wrapper for a NotificationTarget_addOngoing_Params promised by a client call.
func (NotificationTarget_addOngoing_Params_Future) DisplayInfo ¶
func (p NotificationTarget_addOngoing_Params_Future) DisplayInfo() NotificationDisplayInfo_Future
func (NotificationTarget_addOngoing_Params_Future) Notification ¶
func (p NotificationTarget_addOngoing_Params_Future) Notification() OngoingNotification
func (NotificationTarget_addOngoing_Params_Future) Struct ¶
func (f NotificationTarget_addOngoing_Params_Future) Struct() (NotificationTarget_addOngoing_Params, error)
type NotificationTarget_addOngoing_Params_List ¶
type NotificationTarget_addOngoing_Params_List = capnp.StructList[NotificationTarget_addOngoing_Params]
NotificationTarget_addOngoing_Params_List is a list of NotificationTarget_addOngoing_Params.
type NotificationTarget_addOngoing_Results ¶
func NewNotificationTarget_addOngoing_Results ¶
func NewNotificationTarget_addOngoing_Results(s *capnp.Segment) (NotificationTarget_addOngoing_Results, error)
func NewRootNotificationTarget_addOngoing_Results ¶
func NewRootNotificationTarget_addOngoing_Results(s *capnp.Segment) (NotificationTarget_addOngoing_Results, error)
func ReadRootNotificationTarget_addOngoing_Results ¶
func ReadRootNotificationTarget_addOngoing_Results(msg *capnp.Message) (NotificationTarget_addOngoing_Results, error)
func (NotificationTarget_addOngoing_Results) DecodeFromPtr ¶
func (NotificationTarget_addOngoing_Results) DecodeFromPtr(p capnp.Ptr) NotificationTarget_addOngoing_Results
func (NotificationTarget_addOngoing_Results) EncodeAsPtr ¶
func (s NotificationTarget_addOngoing_Results) EncodeAsPtr(seg *capnp.Segment) capnp.Ptr
func (NotificationTarget_addOngoing_Results) Handle ¶
func (s NotificationTarget_addOngoing_Results) Handle() util.Handle
func (NotificationTarget_addOngoing_Results) HasHandle ¶
func (s NotificationTarget_addOngoing_Results) HasHandle() bool
func (NotificationTarget_addOngoing_Results) IsValid ¶
func (s NotificationTarget_addOngoing_Results) IsValid() bool
func (NotificationTarget_addOngoing_Results) Message ¶
func (s NotificationTarget_addOngoing_Results) Message() *capnp.Message
func (NotificationTarget_addOngoing_Results) Segment ¶
func (s NotificationTarget_addOngoing_Results) Segment() *capnp.Segment
func (NotificationTarget_addOngoing_Results) SetHandle ¶
func (s NotificationTarget_addOngoing_Results) SetHandle(v util.Handle) error
func (NotificationTarget_addOngoing_Results) String ¶
func (s NotificationTarget_addOngoing_Results) String() string
func (NotificationTarget_addOngoing_Results) ToPtr ¶
func (s NotificationTarget_addOngoing_Results) ToPtr() capnp.Ptr
type NotificationTarget_addOngoing_Results_Future ¶
NotificationTarget_addOngoing_Results_Future is a wrapper for a NotificationTarget_addOngoing_Results promised by a client call.
func (NotificationTarget_addOngoing_Results_Future) Handle ¶
func (p NotificationTarget_addOngoing_Results_Future) Handle() util.Handle
func (NotificationTarget_addOngoing_Results_Future) Struct ¶
func (f NotificationTarget_addOngoing_Results_Future) Struct() (NotificationTarget_addOngoing_Results, error)
type NotificationTarget_addOngoing_Results_List ¶
type NotificationTarget_addOngoing_Results_List = capnp.StructList[NotificationTarget_addOngoing_Results]
NotificationTarget_addOngoing_Results_List is a list of NotificationTarget_addOngoing_Results.
type OngoingNotification ¶
func OngoingNotification_ServerToClient ¶
func OngoingNotification_ServerToClient(s OngoingNotification_Server) OngoingNotification
OngoingNotification_ServerToClient creates a new Client from an implementation of OngoingNotification_Server. The caller is responsible for calling Release on the returned Client.
func (OngoingNotification) AddRef ¶
func (c OngoingNotification) AddRef() OngoingNotification
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 (OngoingNotification) Cancel ¶
func (c OngoingNotification) Cancel(ctx context.Context, params func(OngoingNotification_cancel_Params) error) (OngoingNotification_cancel_Results_Future, capnp.ReleaseFunc)
func (OngoingNotification) DecodeFromPtr ¶
func (OngoingNotification) DecodeFromPtr(p capnp.Ptr) OngoingNotification
func (OngoingNotification) EncodeAsPtr ¶
func (c OngoingNotification) EncodeAsPtr(seg *capnp.Segment) capnp.Ptr
func (OngoingNotification) GetFlowLimiter ¶
func (c OngoingNotification) GetFlowLimiter() fc.FlowLimiter
Get the current flowcontrol.FlowLimiter used to manage flow control for this client.
func (OngoingNotification) IsSame ¶
func (c OngoingNotification) IsSame(other OngoingNotification) bool
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 (OngoingNotification) IsValid ¶
func (c OngoingNotification) IsValid() bool
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 (OngoingNotification) Release ¶
func (c OngoingNotification) 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 (OngoingNotification) Resolve ¶
func (c OngoingNotification) Resolve(ctx context.Context) error
Resolve blocks until the capability is fully resolved or the Context expires.
func (OngoingNotification) SetFlowLimiter ¶
func (c OngoingNotification) 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.
func (OngoingNotification) String ¶
func (c OngoingNotification) String() string
String returns a string that identifies this capability for debugging purposes. Its format should not be depended on: in particular, it should not be used to compare clients. Use IsSame to compare clients for equality.
type OngoingNotification_List ¶
type OngoingNotification_List = capnp.CapList[OngoingNotification]
OngoingNotification_List is a list of OngoingNotification.
type OngoingNotification_Server ¶
type OngoingNotification_Server interface {
Cancel(context.Context, OngoingNotification_cancel) error
}
type OngoingNotification_cancel ¶
OngoingNotification_cancel holds the state for a server call to OngoingNotification.cancel. See server.Call for documentation.
func (OngoingNotification_cancel) AllocResults ¶
func (c OngoingNotification_cancel) AllocResults() (OngoingNotification_cancel_Results, error)
AllocResults allocates the results struct.
func (OngoingNotification_cancel) Args ¶
func (c OngoingNotification_cancel) Args() OngoingNotification_cancel_Params
Args returns the call's arguments.
type OngoingNotification_cancel_Params ¶
func NewOngoingNotification_cancel_Params ¶
func NewOngoingNotification_cancel_Params(s *capnp.Segment) (OngoingNotification_cancel_Params, error)
func NewRootOngoingNotification_cancel_Params ¶
func NewRootOngoingNotification_cancel_Params(s *capnp.Segment) (OngoingNotification_cancel_Params, error)
func ReadRootOngoingNotification_cancel_Params ¶
func ReadRootOngoingNotification_cancel_Params(msg *capnp.Message) (OngoingNotification_cancel_Params, error)
func (OngoingNotification_cancel_Params) DecodeFromPtr ¶
func (OngoingNotification_cancel_Params) DecodeFromPtr(p capnp.Ptr) OngoingNotification_cancel_Params
func (OngoingNotification_cancel_Params) EncodeAsPtr ¶
func (s OngoingNotification_cancel_Params) EncodeAsPtr(seg *capnp.Segment) capnp.Ptr
func (OngoingNotification_cancel_Params) IsValid ¶
func (s OngoingNotification_cancel_Params) IsValid() bool
func (OngoingNotification_cancel_Params) Message ¶
func (s OngoingNotification_cancel_Params) Message() *capnp.Message
func (OngoingNotification_cancel_Params) Segment ¶
func (s OngoingNotification_cancel_Params) Segment() *capnp.Segment
func (OngoingNotification_cancel_Params) String ¶
func (s OngoingNotification_cancel_Params) String() string
func (OngoingNotification_cancel_Params) ToPtr ¶
func (s OngoingNotification_cancel_Params) ToPtr() capnp.Ptr
type OngoingNotification_cancel_Params_Future ¶
OngoingNotification_cancel_Params_Future is a wrapper for a OngoingNotification_cancel_Params promised by a client call.
func (OngoingNotification_cancel_Params_Future) Struct ¶
func (f OngoingNotification_cancel_Params_Future) Struct() (OngoingNotification_cancel_Params, error)
type OngoingNotification_cancel_Params_List ¶
type OngoingNotification_cancel_Params_List = capnp.StructList[OngoingNotification_cancel_Params]
OngoingNotification_cancel_Params_List is a list of OngoingNotification_cancel_Params.
type OngoingNotification_cancel_Results ¶
func NewOngoingNotification_cancel_Results ¶
func NewOngoingNotification_cancel_Results(s *capnp.Segment) (OngoingNotification_cancel_Results, error)
func NewRootOngoingNotification_cancel_Results ¶
func NewRootOngoingNotification_cancel_Results(s *capnp.Segment) (OngoingNotification_cancel_Results, error)
func ReadRootOngoingNotification_cancel_Results ¶
func ReadRootOngoingNotification_cancel_Results(msg *capnp.Message) (OngoingNotification_cancel_Results, error)
func (OngoingNotification_cancel_Results) DecodeFromPtr ¶
func (OngoingNotification_cancel_Results) DecodeFromPtr(p capnp.Ptr) OngoingNotification_cancel_Results
func (OngoingNotification_cancel_Results) EncodeAsPtr ¶
func (s OngoingNotification_cancel_Results) EncodeAsPtr(seg *capnp.Segment) capnp.Ptr
func (OngoingNotification_cancel_Results) IsValid ¶
func (s OngoingNotification_cancel_Results) IsValid() bool
func (OngoingNotification_cancel_Results) Message ¶
func (s OngoingNotification_cancel_Results) Message() *capnp.Message
func (OngoingNotification_cancel_Results) Segment ¶
func (s OngoingNotification_cancel_Results) Segment() *capnp.Segment
func (OngoingNotification_cancel_Results) String ¶
func (s OngoingNotification_cancel_Results) String() string
func (OngoingNotification_cancel_Results) ToPtr ¶
func (s OngoingNotification_cancel_Results) ToPtr() capnp.Ptr
type OngoingNotification_cancel_Results_Future ¶
OngoingNotification_cancel_Results_Future is a wrapper for a OngoingNotification_cancel_Results promised by a client call.
func (OngoingNotification_cancel_Results_Future) Struct ¶
func (f OngoingNotification_cancel_Results_Future) Struct() (OngoingNotification_cancel_Results, error)
type OngoingNotification_cancel_Results_List ¶
type OngoingNotification_cancel_Results_List = capnp.StructList[OngoingNotification_cancel_Results]
OngoingNotification_cancel_Results_List is a list of OngoingNotification_cancel_Results.