activity

package
v0.0.0-...-e2e80d8 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const ActivityEvent_ThreadInfo_TypeID = 0xf3902b5a86ffba44

ActivityEvent_ThreadInfo_TypeID is the unique identifier for the type ActivityEvent_ThreadInfo.

View Source
const ActivityEvent_TypeID = 0xa7c0b6eaa98c6c4b

ActivityEvent_TypeID is the unique identifier for the type ActivityEvent.

View Source
const ActivityEvent_User_TypeID = 0xbb4d119bbcd89677

ActivityEvent_User_TypeID is the unique identifier for the type ActivityEvent_User.

View Source
const ActivityTypeDef_TypeID = 0xe638de0ad7c89a2b

ActivityTypeDef_TypeID is the unique identifier for the type ActivityTypeDef.

View Source
const NotificationDisplayInfo_TypeID = 0xd3b9f2ca42d4f783

NotificationDisplayInfo_TypeID is the unique identifier for the type NotificationDisplayInfo.

View Source
const NotificationTarget_TypeID = 0xf0f87337d73020f0

NotificationTarget_TypeID is the unique identifier for the type NotificationTarget.

View Source
const NotificationTarget_addOngoing_Params_TypeID = 0xdaaca64376c9033a

NotificationTarget_addOngoing_Params_TypeID is the unique identifier for the type NotificationTarget_addOngoing_Params.

View Source
const NotificationTarget_addOngoing_Results_TypeID = 0xee4cbafe4028d3c2

NotificationTarget_addOngoing_Results_TypeID is the unique identifier for the type NotificationTarget_addOngoing_Results.

View Source
const OngoingNotification_TypeID = 0xfe851ddbb88940cd

OngoingNotification_TypeID is the unique identifier for the type OngoingNotification.

View Source
const OngoingNotification_cancel_Params_TypeID = 0xf1d1cb82a830948b

OngoingNotification_cancel_Params_TypeID is the unique identifier for the type OngoingNotification_cancel_Params.

View Source
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

type ActivityEvent capnp.Struct

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) EncodeAsPtr

func (s ActivityEvent) EncodeAsPtr(seg *capnp.Segment) capnp.Ptr

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

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 (ActivityEvent) SetType

func (s ActivityEvent) SetType(v uint16)

func (ActivityEvent) SetUsers

func (ActivityEvent) String

func (s ActivityEvent) String() string

func (ActivityEvent) Thread

func (ActivityEvent) ToPtr

func (s ActivityEvent) ToPtr() capnp.Ptr

func (ActivityEvent) Type

func (s ActivityEvent) Type() uint16

func (ActivityEvent) Users

type ActivityEvent_Future

type ActivityEvent_Future struct{ *capnp.Future }

ActivityEvent_Future is a wrapper for a ActivityEvent promised by a client call.

func (ActivityEvent_Future) Notification

func (ActivityEvent_Future) Struct

func (ActivityEvent_Future) Thread

type ActivityEvent_List

type ActivityEvent_List = capnp.StructList[ActivityEvent]

ActivityEvent_List is a list of ActivityEvent.

func NewActivityEvent_List

func NewActivityEvent_List(s *capnp.Segment, sz int32) (ActivityEvent_List, error)

NewActivityEvent creates a new list of ActivityEvent.

type ActivityEvent_ThreadInfo

type ActivityEvent_ThreadInfo capnp.Struct

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) 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

NewTitle sets the title field to a newly allocated util.LocalizedText struct, preferring placement in s's segment.

func (ActivityEvent_ThreadInfo) Path

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 (ActivityEvent_ThreadInfo) String

func (s ActivityEvent_ThreadInfo) String() string

func (ActivityEvent_ThreadInfo) Title

func (ActivityEvent_ThreadInfo) ToPtr

type ActivityEvent_ThreadInfo_Future

type ActivityEvent_ThreadInfo_Future struct{ *capnp.Future }

ActivityEvent_ThreadInfo_Future is a wrapper for a ActivityEvent_ThreadInfo promised by a client call.

func (ActivityEvent_ThreadInfo_Future) Struct

func (ActivityEvent_ThreadInfo_Future) Title

type ActivityEvent_ThreadInfo_List

type ActivityEvent_ThreadInfo_List = capnp.StructList[ActivityEvent_ThreadInfo]

ActivityEvent_ThreadInfo_List is a list of ActivityEvent_ThreadInfo.

func NewActivityEvent_ThreadInfo_List

func NewActivityEvent_ThreadInfo_List(s *capnp.Segment, sz int32) (ActivityEvent_ThreadInfo_List, error)

NewActivityEvent_ThreadInfo creates a new list of ActivityEvent_ThreadInfo.

type ActivityEvent_User

type ActivityEvent_User capnp.Struct

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) 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

type ActivityEvent_User_Future struct{ *capnp.Future }

ActivityEvent_User_Future is a wrapper for a ActivityEvent_User promised by a client call.

func (ActivityEvent_User_Future) Identity

func (ActivityEvent_User_Future) Struct

type ActivityEvent_User_List

type ActivityEvent_User_List = capnp.StructList[ActivityEvent_User]

ActivityEvent_User_List is a list of ActivityEvent_User.

func NewActivityEvent_User_List

func NewActivityEvent_User_List(s *capnp.Segment, sz int32) (ActivityEvent_User_List, error)

NewActivityEvent_User creates a new list of ActivityEvent_User.

type ActivityTypeDef

type ActivityTypeDef capnp.Struct

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

type ActivityTypeDef_Future struct{ *capnp.Future }

ActivityTypeDef_Future is a wrapper for a ActivityTypeDef promised by a client call.

func (ActivityTypeDef_Future) Description

func (ActivityTypeDef_Future) RequiredPermission

func (ActivityTypeDef_Future) Struct

func (ActivityTypeDef_Future) VerbPhrase

type ActivityTypeDef_List

type ActivityTypeDef_List = capnp.StructList[ActivityTypeDef]

ActivityTypeDef_List is a list of ActivityTypeDef.

func NewActivityTypeDef_List

func NewActivityTypeDef_List(s *capnp.Segment, sz int32) (ActivityTypeDef_List, error)

NewActivityTypeDef creates a new list of ActivityTypeDef.

type ActivityTypeDef_requiredPermission

type ActivityTypeDef_requiredPermission ActivityTypeDef

func (ActivityTypeDef_requiredPermission) IsValid

func (ActivityTypeDef_requiredPermission) Message

func (ActivityTypeDef_requiredPermission) PermissionIndex

func (s ActivityTypeDef_requiredPermission) PermissionIndex() uint16

func (ActivityTypeDef_requiredPermission) 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

type ActivityTypeDef_requiredPermission_Future struct{ *capnp.Future }

ActivityTypeDef_requiredPermission_Future is a wrapper for a ActivityTypeDef_requiredPermission promised by a client call.

func (ActivityTypeDef_requiredPermission_Future) Struct

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

type NotificationDisplayInfo

type NotificationDisplayInfo capnp.Struct

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 (NotificationDisplayInfo) DecodeFromPtr

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 (NotificationDisplayInfo) String

func (s NotificationDisplayInfo) String() string

func (NotificationDisplayInfo) ToPtr

func (s NotificationDisplayInfo) ToPtr() capnp.Ptr

type NotificationDisplayInfo_Future

type NotificationDisplayInfo_Future struct{ *capnp.Future }

NotificationDisplayInfo_Future is a wrapper for a NotificationDisplayInfo promised by a client call.

func (NotificationDisplayInfo_Future) Caption

func (NotificationDisplayInfo_Future) Struct

type NotificationDisplayInfo_List

type NotificationDisplayInfo_List = capnp.StructList[NotificationDisplayInfo]

NotificationDisplayInfo_List is a list of NotificationDisplayInfo.

func NewNotificationDisplayInfo_List

func NewNotificationDisplayInfo_List(s *capnp.Segment, sz int32) (NotificationDisplayInfo_List, error)

NewNotificationDisplayInfo creates a new list of NotificationDisplayInfo.

type NotificationTarget

type NotificationTarget capnp.Client

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) 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 (NotificationTarget) DecodeFromPtr

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.

func NewNotificationTarget_List

func NewNotificationTarget_List(s *capnp.Segment, sz int32) (NotificationTarget_List, error)

NewNotificationTarget creates a new list of NotificationTarget.

type NotificationTarget_Server

type NotificationTarget_Server interface {
	AddOngoing(context.Context, NotificationTarget_addOngoing) error
}

type NotificationTarget_addOngoing

type NotificationTarget_addOngoing struct {
	*server.Call
}

NotificationTarget_addOngoing holds the state for a server call to NotificationTarget.addOngoing. See server.Call for documentation.

func (NotificationTarget_addOngoing) AllocResults

AllocResults allocates the results struct.

func (NotificationTarget_addOngoing) Args

Args returns the call's arguments.

type NotificationTarget_addOngoing_Params

type NotificationTarget_addOngoing_Params capnp.Struct

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) DisplayInfo

func (NotificationTarget_addOngoing_Params) EncodeAsPtr

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 (NotificationTarget_addOngoing_Params) Message

func (NotificationTarget_addOngoing_Params) NewDisplayInfo

NewDisplayInfo sets the displayInfo field to a newly allocated NotificationDisplayInfo struct, preferring placement in s's segment.

func (NotificationTarget_addOngoing_Params) Notification

func (NotificationTarget_addOngoing_Params) Segment

func (NotificationTarget_addOngoing_Params) SetDisplayInfo

func (NotificationTarget_addOngoing_Params) SetNotification

func (NotificationTarget_addOngoing_Params) String

func (NotificationTarget_addOngoing_Params) ToPtr

type NotificationTarget_addOngoing_Params_Future

type NotificationTarget_addOngoing_Params_Future struct{ *capnp.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 (NotificationTarget_addOngoing_Params_Future) Notification

func (NotificationTarget_addOngoing_Params_Future) Struct

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.

func NewNotificationTarget_addOngoing_Params_List

func NewNotificationTarget_addOngoing_Params_List(s *capnp.Segment, sz int32) (NotificationTarget_addOngoing_Params_List, error)

NewNotificationTarget_addOngoing_Params creates a new list of NotificationTarget_addOngoing_Params.

type NotificationTarget_addOngoing_Results

type NotificationTarget_addOngoing_Results capnp.Struct

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) EncodeAsPtr

func (NotificationTarget_addOngoing_Results) Handle

func (NotificationTarget_addOngoing_Results) HasHandle

func (NotificationTarget_addOngoing_Results) IsValid

func (NotificationTarget_addOngoing_Results) Message

func (NotificationTarget_addOngoing_Results) Segment

func (NotificationTarget_addOngoing_Results) SetHandle

func (NotificationTarget_addOngoing_Results) String

func (NotificationTarget_addOngoing_Results) ToPtr

type NotificationTarget_addOngoing_Results_Future

type NotificationTarget_addOngoing_Results_Future struct{ *capnp.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 (NotificationTarget_addOngoing_Results_Future) Struct

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.

func NewNotificationTarget_addOngoing_Results_List

func NewNotificationTarget_addOngoing_Results_List(s *capnp.Segment, sz int32) (NotificationTarget_addOngoing_Results_List, error)

NewNotificationTarget_addOngoing_Results creates a new list of NotificationTarget_addOngoing_Results.

type OngoingNotification

type OngoingNotification capnp.Client

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

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) DecodeFromPtr

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

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.

func NewOngoingNotification_List

func NewOngoingNotification_List(s *capnp.Segment, sz int32) (OngoingNotification_List, error)

NewOngoingNotification creates a new list of OngoingNotification.

type OngoingNotification_Server

type OngoingNotification_Server interface {
	Cancel(context.Context, OngoingNotification_cancel) error
}

type OngoingNotification_cancel

type OngoingNotification_cancel struct {
	*server.Call
}

OngoingNotification_cancel holds the state for a server call to OngoingNotification.cancel. See server.Call for documentation.

func (OngoingNotification_cancel) AllocResults

AllocResults allocates the results struct.

func (OngoingNotification_cancel) Args

Args returns the call's arguments.

type OngoingNotification_cancel_Params

type OngoingNotification_cancel_Params capnp.Struct

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) EncodeAsPtr

func (OngoingNotification_cancel_Params) IsValid

func (OngoingNotification_cancel_Params) Message

func (OngoingNotification_cancel_Params) Segment

func (OngoingNotification_cancel_Params) String

func (OngoingNotification_cancel_Params) ToPtr

type OngoingNotification_cancel_Params_Future

type OngoingNotification_cancel_Params_Future struct{ *capnp.Future }

OngoingNotification_cancel_Params_Future is a wrapper for a OngoingNotification_cancel_Params promised by a client call.

func (OngoingNotification_cancel_Params_Future) Struct

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.

func NewOngoingNotification_cancel_Params_List

func NewOngoingNotification_cancel_Params_List(s *capnp.Segment, sz int32) (OngoingNotification_cancel_Params_List, error)

NewOngoingNotification_cancel_Params creates a new list of OngoingNotification_cancel_Params.

type OngoingNotification_cancel_Results

type OngoingNotification_cancel_Results capnp.Struct

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) EncodeAsPtr

func (OngoingNotification_cancel_Results) IsValid

func (OngoingNotification_cancel_Results) Message

func (OngoingNotification_cancel_Results) Segment

func (OngoingNotification_cancel_Results) String

func (OngoingNotification_cancel_Results) ToPtr

type OngoingNotification_cancel_Results_Future

type OngoingNotification_cancel_Results_Future struct{ *capnp.Future }

OngoingNotification_cancel_Results_Future is a wrapper for a OngoingNotification_cancel_Results promised by a client call.

func (OngoingNotification_cancel_Results_Future) Struct

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.

func NewOngoingNotification_cancel_Results_List

func NewOngoingNotification_cancel_Results_List(s *capnp.Segment, sz int32) (OngoingNotification_cancel_Results_List, error)

NewOngoingNotification_cancel_Results creates a new list of OngoingNotification_cancel_Results.

Jump to

Keyboard shortcuts

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