Documentation ¶
Index ¶
- Constants
- func PaymentAcceptor_Methods(methods []server.Method, s PaymentAcceptor_Server) []server.Method
- func PaymentAcceptor_NewServer(s PaymentAcceptor_Server) *server.Server
- func PaymentSource_Methods(methods []server.Method, s PaymentSource_Server) []server.Method
- func PaymentSource_NewServer(s PaymentSource_Server) *server.Server
- func Payment_Methods(methods []server.Method, s Payment_Server) []server.Method
- func Payment_NewServer(s Payment_Server) *server.Server
- func PersistentPaymentAcceptor_Methods(methods []server.Method, s PersistentPaymentAcceptor_Server) []server.Method
- func PersistentPaymentAcceptor_NewServer(s PersistentPaymentAcceptor_Server) *server.Server
- func PersistentPaymentSource_Methods(methods []server.Method, s PersistentPaymentSource_Server) []server.Method
- func PersistentPaymentSource_NewServer(s PersistentPaymentSource_Server) *server.Server
- func PersistentPayment_Methods(methods []server.Method, s PersistentPayment_Server) []server.Method
- func PersistentPayment_NewServer(s PersistentPayment_Server) *server.Server
- type Payment
- func (c Payment) AddRef() Payment
- func (c Payment) Commit(ctx context.Context, params func(Payment_commit_Params) error) (Payment_commit_Results_Future, capnp.ReleaseFunc)
- func (Payment) DecodeFromPtr(p capnp.Ptr) Payment
- func (c Payment) EncodeAsPtr(seg *capnp.Segment) capnp.Ptr
- func (c Payment) GetFlowLimiter() fc.FlowLimiter
- func (c Payment) IsSame(other Payment) bool
- func (c Payment) IsValid() bool
- func (c Payment) Release()
- func (c Payment) Resolve(ctx context.Context) error
- func (c Payment) SetFlowLimiter(lim fc.FlowLimiter)
- func (c Payment) String() string
- type PaymentAcceptor
- func (c PaymentAcceptor) AddRef() PaymentAcceptor
- func (c PaymentAcceptor) CreatePayment(ctx context.Context, params func(PaymentAcceptor_createPayment_Params) error) (PaymentAcceptor_CreatePaymentResults_Future, capnp.ReleaseFunc)
- func (PaymentAcceptor) DecodeFromPtr(p capnp.Ptr) PaymentAcceptor
- func (c PaymentAcceptor) EncodeAsPtr(seg *capnp.Segment) capnp.Ptr
- func (c PaymentAcceptor) GetFlowLimiter() fc.FlowLimiter
- func (c PaymentAcceptor) IsSame(other PaymentAcceptor) bool
- func (c PaymentAcceptor) IsValid() bool
- func (c PaymentAcceptor) Release()
- func (c PaymentAcceptor) Resolve(ctx context.Context) error
- func (c PaymentAcceptor) SetFlowLimiter(lim fc.FlowLimiter)
- func (c PaymentAcceptor) String() string
- type PaymentAcceptor_CreatePaymentResults
- func NewPaymentAcceptor_CreatePaymentResults(s *capnp.Segment) (PaymentAcceptor_CreatePaymentResults, error)
- func NewRootPaymentAcceptor_CreatePaymentResults(s *capnp.Segment) (PaymentAcceptor_CreatePaymentResults, error)
- func ReadRootPaymentAcceptor_CreatePaymentResults(msg *capnp.Message) (PaymentAcceptor_CreatePaymentResults, error)
- func (PaymentAcceptor_CreatePaymentResults) DecodeFromPtr(p capnp.Ptr) PaymentAcceptor_CreatePaymentResults
- func (s PaymentAcceptor_CreatePaymentResults) EncodeAsPtr(seg *capnp.Segment) capnp.Ptr
- func (s PaymentAcceptor_CreatePaymentResults) Failed() PaymentAcceptor_CreatePaymentResults_failed
- func (s PaymentAcceptor_CreatePaymentResults) IsValid() bool
- func (s PaymentAcceptor_CreatePaymentResults) Message() *capnp.Message
- func (s PaymentAcceptor_CreatePaymentResults) Segment() *capnp.Segment
- func (s PaymentAcceptor_CreatePaymentResults) SetFailed()
- func (s PaymentAcceptor_CreatePaymentResults) SetSuccess()
- func (s PaymentAcceptor_CreatePaymentResults) String() string
- func (s PaymentAcceptor_CreatePaymentResults) Success() PaymentAcceptor_CreatePaymentResults_success
- func (s PaymentAcceptor_CreatePaymentResults) ToPtr() capnp.Ptr
- func (s PaymentAcceptor_CreatePaymentResults) Which() PaymentAcceptor_CreatePaymentResults_Which
- type PaymentAcceptor_CreatePaymentResults_Future
- func (p PaymentAcceptor_CreatePaymentResults_Future) Failed() PaymentAcceptor_CreatePaymentResults_failed_Future
- func (f PaymentAcceptor_CreatePaymentResults_Future) Struct() (PaymentAcceptor_CreatePaymentResults, error)
- func (p PaymentAcceptor_CreatePaymentResults_Future) Success() PaymentAcceptor_CreatePaymentResults_success_Future
- type PaymentAcceptor_CreatePaymentResults_List
- type PaymentAcceptor_CreatePaymentResults_Which
- type PaymentAcceptor_CreatePaymentResults_failed
- func (s PaymentAcceptor_CreatePaymentResults_failed) Description() (util.LocalizedText, error)
- func (s PaymentAcceptor_CreatePaymentResults_failed) HasDescription() bool
- func (s PaymentAcceptor_CreatePaymentResults_failed) IsValid() bool
- func (s PaymentAcceptor_CreatePaymentResults_failed) Message() *capnp.Message
- func (s PaymentAcceptor_CreatePaymentResults_failed) NewDescription() (util.LocalizedText, error)
- func (s PaymentAcceptor_CreatePaymentResults_failed) Segment() *capnp.Segment
- func (s PaymentAcceptor_CreatePaymentResults_failed) SetDescription(v util.LocalizedText) error
- type PaymentAcceptor_CreatePaymentResults_failed_Future
- type PaymentAcceptor_CreatePaymentResults_success
- func (s PaymentAcceptor_CreatePaymentResults_success) HasPayment() bool
- func (s PaymentAcceptor_CreatePaymentResults_success) IsValid() bool
- func (s PaymentAcceptor_CreatePaymentResults_success) Message() *capnp.Message
- func (s PaymentAcceptor_CreatePaymentResults_success) Payment() Payment
- func (s PaymentAcceptor_CreatePaymentResults_success) Segment() *capnp.Segment
- func (s PaymentAcceptor_CreatePaymentResults_success) SetPayment(v Payment) error
- type PaymentAcceptor_CreatePaymentResults_success_Future
- type PaymentAcceptor_Invoice
- func (PaymentAcceptor_Invoice) DecodeFromPtr(p capnp.Ptr) PaymentAcceptor_Invoice
- func (s PaymentAcceptor_Invoice) EncodeAsPtr(seg *capnp.Segment) capnp.Ptr
- func (s PaymentAcceptor_Invoice) HasItems() bool
- func (s PaymentAcceptor_Invoice) IsValid() bool
- func (s PaymentAcceptor_Invoice) Items() (PaymentAcceptor_Invoice_Item_List, error)
- func (s PaymentAcceptor_Invoice) Message() *capnp.Message
- func (s PaymentAcceptor_Invoice) NewItems(n int32) (PaymentAcceptor_Invoice_Item_List, error)
- func (s PaymentAcceptor_Invoice) Segment() *capnp.Segment
- func (s PaymentAcceptor_Invoice) SetItems(v PaymentAcceptor_Invoice_Item_List) error
- func (s PaymentAcceptor_Invoice) String() string
- func (s PaymentAcceptor_Invoice) ToPtr() capnp.Ptr
- type PaymentAcceptor_Invoice_Future
- type PaymentAcceptor_Invoice_Item
- func (s PaymentAcceptor_Invoice_Item) AmountCents() int32
- func (PaymentAcceptor_Invoice_Item) DecodeFromPtr(p capnp.Ptr) PaymentAcceptor_Invoice_Item
- func (s PaymentAcceptor_Invoice_Item) EncodeAsPtr(seg *capnp.Segment) capnp.Ptr
- func (s PaymentAcceptor_Invoice_Item) HasTitle() bool
- func (s PaymentAcceptor_Invoice_Item) IsValid() bool
- func (s PaymentAcceptor_Invoice_Item) Message() *capnp.Message
- func (s PaymentAcceptor_Invoice_Item) NewTitle() (util.LocalizedText, error)
- func (s PaymentAcceptor_Invoice_Item) Segment() *capnp.Segment
- func (s PaymentAcceptor_Invoice_Item) SetAmountCents(v int32)
- func (s PaymentAcceptor_Invoice_Item) SetTitle(v util.LocalizedText) error
- func (s PaymentAcceptor_Invoice_Item) String() string
- func (s PaymentAcceptor_Invoice_Item) Title() (util.LocalizedText, error)
- func (s PaymentAcceptor_Invoice_Item) ToPtr() capnp.Ptr
- type PaymentAcceptor_Invoice_Item_Future
- type PaymentAcceptor_Invoice_Item_List
- type PaymentAcceptor_Invoice_List
- type PaymentAcceptor_List
- type PaymentAcceptor_Server
- type PaymentAcceptor_createPayment
- type PaymentAcceptor_createPayment_Params
- func NewPaymentAcceptor_createPayment_Params(s *capnp.Segment) (PaymentAcceptor_createPayment_Params, error)
- func NewRootPaymentAcceptor_createPayment_Params(s *capnp.Segment) (PaymentAcceptor_createPayment_Params, error)
- func ReadRootPaymentAcceptor_createPayment_Params(msg *capnp.Message) (PaymentAcceptor_createPayment_Params, error)
- func (PaymentAcceptor_createPayment_Params) DecodeFromPtr(p capnp.Ptr) PaymentAcceptor_createPayment_Params
- func (s PaymentAcceptor_createPayment_Params) EncodeAsPtr(seg *capnp.Segment) capnp.Ptr
- func (s PaymentAcceptor_createPayment_Params) HasInvoice() bool
- func (s PaymentAcceptor_createPayment_Params) HasSource() bool
- func (s PaymentAcceptor_createPayment_Params) Invoice() (PaymentAcceptor_Invoice, error)
- func (s PaymentAcceptor_createPayment_Params) IsValid() bool
- func (s PaymentAcceptor_createPayment_Params) Message() *capnp.Message
- func (s PaymentAcceptor_createPayment_Params) NewInvoice() (PaymentAcceptor_Invoice, error)
- func (s PaymentAcceptor_createPayment_Params) Segment() *capnp.Segment
- func (s PaymentAcceptor_createPayment_Params) SetInvoice(v PaymentAcceptor_Invoice) error
- func (s PaymentAcceptor_createPayment_Params) SetSource(v PaymentSource) error
- func (s PaymentAcceptor_createPayment_Params) Source() PaymentSource
- func (s PaymentAcceptor_createPayment_Params) String() string
- func (s PaymentAcceptor_createPayment_Params) ToPtr() capnp.Ptr
- type PaymentAcceptor_createPayment_Params_Future
- type PaymentAcceptor_createPayment_Params_List
- type PaymentSource
- func (c PaymentSource) AddRef() PaymentSource
- func (PaymentSource) DecodeFromPtr(p capnp.Ptr) PaymentSource
- func (c PaymentSource) EncodeAsPtr(seg *capnp.Segment) capnp.Ptr
- func (c PaymentSource) GetFlowLimiter() fc.FlowLimiter
- func (c PaymentSource) GetTitle(ctx context.Context, params func(PaymentSource_getTitle_Params) error) (PaymentSource_getTitle_Results_Future, capnp.ReleaseFunc)
- func (c PaymentSource) IsSame(other PaymentSource) bool
- func (c PaymentSource) IsValid() bool
- func (c PaymentSource) Release()
- func (c PaymentSource) Resolve(ctx context.Context) error
- func (c PaymentSource) SetFlowLimiter(lim fc.FlowLimiter)
- func (c PaymentSource) String() string
- type PaymentSource_List
- type PaymentSource_Server
- type PaymentSource_getTitle
- type PaymentSource_getTitle_Params
- func (PaymentSource_getTitle_Params) DecodeFromPtr(p capnp.Ptr) PaymentSource_getTitle_Params
- func (s PaymentSource_getTitle_Params) EncodeAsPtr(seg *capnp.Segment) capnp.Ptr
- func (s PaymentSource_getTitle_Params) IsValid() bool
- func (s PaymentSource_getTitle_Params) Message() *capnp.Message
- func (s PaymentSource_getTitle_Params) Segment() *capnp.Segment
- func (s PaymentSource_getTitle_Params) String() string
- func (s PaymentSource_getTitle_Params) ToPtr() capnp.Ptr
- type PaymentSource_getTitle_Params_Future
- type PaymentSource_getTitle_Params_List
- type PaymentSource_getTitle_Results
- func NewPaymentSource_getTitle_Results(s *capnp.Segment) (PaymentSource_getTitle_Results, error)
- func NewRootPaymentSource_getTitle_Results(s *capnp.Segment) (PaymentSource_getTitle_Results, error)
- func ReadRootPaymentSource_getTitle_Results(msg *capnp.Message) (PaymentSource_getTitle_Results, error)
- func (PaymentSource_getTitle_Results) DecodeFromPtr(p capnp.Ptr) PaymentSource_getTitle_Results
- func (s PaymentSource_getTitle_Results) EncodeAsPtr(seg *capnp.Segment) capnp.Ptr
- func (s PaymentSource_getTitle_Results) HasTitle() bool
- func (s PaymentSource_getTitle_Results) IsValid() bool
- func (s PaymentSource_getTitle_Results) Message() *capnp.Message
- func (s PaymentSource_getTitle_Results) NewTitle() (util.LocalizedText, error)
- func (s PaymentSource_getTitle_Results) Segment() *capnp.Segment
- func (s PaymentSource_getTitle_Results) SetTitle(v util.LocalizedText) error
- func (s PaymentSource_getTitle_Results) String() string
- func (s PaymentSource_getTitle_Results) Title() (util.LocalizedText, error)
- func (s PaymentSource_getTitle_Results) ToPtr() capnp.Ptr
- type PaymentSource_getTitle_Results_Future
- type PaymentSource_getTitle_Results_List
- type Payment_List
- type Payment_Server
- type Payment_commit
- type Payment_commit_Params
- func (Payment_commit_Params) DecodeFromPtr(p capnp.Ptr) Payment_commit_Params
- func (s Payment_commit_Params) EncodeAsPtr(seg *capnp.Segment) capnp.Ptr
- func (s Payment_commit_Params) IsValid() bool
- func (s Payment_commit_Params) Message() *capnp.Message
- func (s Payment_commit_Params) Segment() *capnp.Segment
- func (s Payment_commit_Params) String() string
- func (s Payment_commit_Params) ToPtr() capnp.Ptr
- type Payment_commit_Params_Future
- type Payment_commit_Params_List
- type Payment_commit_Results
- func (Payment_commit_Results) DecodeFromPtr(p capnp.Ptr) Payment_commit_Results
- func (s Payment_commit_Results) EncodeAsPtr(seg *capnp.Segment) capnp.Ptr
- func (s Payment_commit_Results) IsValid() bool
- func (s Payment_commit_Results) Message() *capnp.Message
- func (s Payment_commit_Results) Segment() *capnp.Segment
- func (s Payment_commit_Results) String() string
- func (s Payment_commit_Results) ToPtr() capnp.Ptr
- type Payment_commit_Results_Future
- type Payment_commit_Results_List
- type PersistentPayment
- func (c PersistentPayment) AddRef() PersistentPayment
- func (c PersistentPayment) AddRequirements(ctx context.Context, ...) (supervisor.SystemPersistent_addRequirements_Results_Future, capnp.ReleaseFunc)
- func (c PersistentPayment) Commit(ctx context.Context, params func(Payment_commit_Params) error) (Payment_commit_Results_Future, capnp.ReleaseFunc)
- func (PersistentPayment) DecodeFromPtr(p capnp.Ptr) PersistentPayment
- func (c PersistentPayment) EncodeAsPtr(seg *capnp.Segment) capnp.Ptr
- func (c PersistentPayment) GetFlowLimiter() fc.FlowLimiter
- func (c PersistentPayment) IsSame(other PersistentPayment) bool
- func (c PersistentPayment) IsValid() bool
- func (c PersistentPayment) Release()
- func (c PersistentPayment) Resolve(ctx context.Context) error
- func (c PersistentPayment) Save(ctx context.Context, params func(persistent.Persistent_SaveParams) error) (persistent.Persistent_SaveResults_Future, capnp.ReleaseFunc)
- func (c PersistentPayment) SetFlowLimiter(lim fc.FlowLimiter)
- func (c PersistentPayment) String() string
- type PersistentPaymentAcceptor
- func (c PersistentPaymentAcceptor) AddRef() PersistentPaymentAcceptor
- func (c PersistentPaymentAcceptor) AddRequirements(ctx context.Context, ...) (supervisor.SystemPersistent_addRequirements_Results_Future, capnp.ReleaseFunc)
- func (c PersistentPaymentAcceptor) CreatePayment(ctx context.Context, params func(PaymentAcceptor_createPayment_Params) error) (PaymentAcceptor_CreatePaymentResults_Future, capnp.ReleaseFunc)
- func (PersistentPaymentAcceptor) DecodeFromPtr(p capnp.Ptr) PersistentPaymentAcceptor
- func (c PersistentPaymentAcceptor) EncodeAsPtr(seg *capnp.Segment) capnp.Ptr
- func (c PersistentPaymentAcceptor) GetFlowLimiter() fc.FlowLimiter
- func (c PersistentPaymentAcceptor) IsSame(other PersistentPaymentAcceptor) bool
- func (c PersistentPaymentAcceptor) IsValid() bool
- func (c PersistentPaymentAcceptor) Release()
- func (c PersistentPaymentAcceptor) Resolve(ctx context.Context) error
- func (c PersistentPaymentAcceptor) Save(ctx context.Context, params func(persistent.Persistent_SaveParams) error) (persistent.Persistent_SaveResults_Future, capnp.ReleaseFunc)
- func (c PersistentPaymentAcceptor) SetFlowLimiter(lim fc.FlowLimiter)
- func (c PersistentPaymentAcceptor) String() string
- type PersistentPaymentAcceptor_List
- type PersistentPaymentAcceptor_Server
- type PersistentPaymentSource
- func (c PersistentPaymentSource) AddRef() PersistentPaymentSource
- func (c PersistentPaymentSource) AddRequirements(ctx context.Context, ...) (supervisor.SystemPersistent_addRequirements_Results_Future, capnp.ReleaseFunc)
- func (PersistentPaymentSource) DecodeFromPtr(p capnp.Ptr) PersistentPaymentSource
- func (c PersistentPaymentSource) EncodeAsPtr(seg *capnp.Segment) capnp.Ptr
- func (c PersistentPaymentSource) GetFlowLimiter() fc.FlowLimiter
- func (c PersistentPaymentSource) GetTitle(ctx context.Context, params func(PaymentSource_getTitle_Params) error) (PaymentSource_getTitle_Results_Future, capnp.ReleaseFunc)
- func (c PersistentPaymentSource) IsSame(other PersistentPaymentSource) bool
- func (c PersistentPaymentSource) IsValid() bool
- func (c PersistentPaymentSource) Release()
- func (c PersistentPaymentSource) Resolve(ctx context.Context) error
- func (c PersistentPaymentSource) Save(ctx context.Context, params func(persistent.Persistent_SaveParams) error) (persistent.Persistent_SaveResults_Future, capnp.ReleaseFunc)
- func (c PersistentPaymentSource) SetFlowLimiter(lim fc.FlowLimiter)
- func (c PersistentPaymentSource) String() string
- type PersistentPaymentSource_List
- type PersistentPaymentSource_Server
- type PersistentPayment_List
- type PersistentPayment_Server
Constants ¶
const PaymentAcceptor_CreatePaymentResults_TypeID = 0xeedba0c4417e0460
PaymentAcceptor_CreatePaymentResults_TypeID is the unique identifier for the type PaymentAcceptor_CreatePaymentResults.
const PaymentAcceptor_Invoice_Item_TypeID = 0xfe043eafc75e52c0
PaymentAcceptor_Invoice_Item_TypeID is the unique identifier for the type PaymentAcceptor_Invoice_Item.
const PaymentAcceptor_Invoice_TypeID = 0x91d6a3469f738613
PaymentAcceptor_Invoice_TypeID is the unique identifier for the type PaymentAcceptor_Invoice.
const PaymentAcceptor_TypeID = 0xd562e38729bbd911
PaymentAcceptor_TypeID is the unique identifier for the type PaymentAcceptor.
const PaymentAcceptor_createPayment_Params_TypeID = 0x9fe16028dd10ba82
PaymentAcceptor_createPayment_Params_TypeID is the unique identifier for the type PaymentAcceptor_createPayment_Params.
const PaymentSource_TypeID = 0xf9692c357124ed70
PaymentSource_TypeID is the unique identifier for the type PaymentSource.
const PaymentSource_getTitle_Params_TypeID = 0xcb2516f79343cbe3
PaymentSource_getTitle_Params_TypeID is the unique identifier for the type PaymentSource_getTitle_Params.
const PaymentSource_getTitle_Results_TypeID = 0xaf4ce1881ecae0ae
PaymentSource_getTitle_Results_TypeID is the unique identifier for the type PaymentSource_getTitle_Results.
const Payment_TypeID = 0xc5203e36361f382d
Payment_TypeID is the unique identifier for the type Payment.
const Payment_commit_Params_TypeID = 0xbe3b7a8d4c9cd5b5
Payment_commit_Params_TypeID is the unique identifier for the type Payment_commit_Params.
const Payment_commit_Results_TypeID = 0xb3942c4ba1c3c70f
Payment_commit_Results_TypeID is the unique identifier for the type Payment_commit_Results.
const PersistentPaymentAcceptor_TypeID = 0xe70f1d4eea79f6f5
PersistentPaymentAcceptor_TypeID is the unique identifier for the type PersistentPaymentAcceptor.
const PersistentPaymentSource_TypeID = 0xa66dd2d4c80d0fae
PersistentPaymentSource_TypeID is the unique identifier for the type PersistentPaymentSource.
const PersistentPayment_TypeID = 0xbbcf2f6351d92999
PersistentPayment_TypeID is the unique identifier for the type PersistentPayment.
Variables ¶
This section is empty.
Functions ¶
func PaymentAcceptor_Methods ¶
func PaymentAcceptor_Methods(methods []server.Method, s PaymentAcceptor_Server) []server.Method
PaymentAcceptor_Methods appends Methods to a slice that invoke the methods on s. This can be used to create a more complicated Server.
func PaymentAcceptor_NewServer ¶
func PaymentAcceptor_NewServer(s PaymentAcceptor_Server) *server.Server
PaymentAcceptor_NewServer creates a new Server from an implementation of PaymentAcceptor_Server.
func PaymentSource_Methods ¶
func PaymentSource_Methods(methods []server.Method, s PaymentSource_Server) []server.Method
PaymentSource_Methods appends Methods to a slice that invoke the methods on s. This can be used to create a more complicated Server.
func PaymentSource_NewServer ¶
func PaymentSource_NewServer(s PaymentSource_Server) *server.Server
PaymentSource_NewServer creates a new Server from an implementation of PaymentSource_Server.
func Payment_Methods ¶
func Payment_Methods(methods []server.Method, s Payment_Server) []server.Method
Payment_Methods appends Methods to a slice that invoke the methods on s. This can be used to create a more complicated Server.
func Payment_NewServer ¶
func Payment_NewServer(s Payment_Server) *server.Server
Payment_NewServer creates a new Server from an implementation of Payment_Server.
func PersistentPaymentAcceptor_Methods ¶
func PersistentPaymentAcceptor_Methods(methods []server.Method, s PersistentPaymentAcceptor_Server) []server.Method
PersistentPaymentAcceptor_Methods appends Methods to a slice that invoke the methods on s. This can be used to create a more complicated Server.
func PersistentPaymentAcceptor_NewServer ¶
func PersistentPaymentAcceptor_NewServer(s PersistentPaymentAcceptor_Server) *server.Server
PersistentPaymentAcceptor_NewServer creates a new Server from an implementation of PersistentPaymentAcceptor_Server.
func PersistentPaymentSource_Methods ¶
func PersistentPaymentSource_Methods(methods []server.Method, s PersistentPaymentSource_Server) []server.Method
PersistentPaymentSource_Methods appends Methods to a slice that invoke the methods on s. This can be used to create a more complicated Server.
func PersistentPaymentSource_NewServer ¶
func PersistentPaymentSource_NewServer(s PersistentPaymentSource_Server) *server.Server
PersistentPaymentSource_NewServer creates a new Server from an implementation of PersistentPaymentSource_Server.
func PersistentPayment_Methods ¶
func PersistentPayment_Methods(methods []server.Method, s PersistentPayment_Server) []server.Method
PersistentPayment_Methods appends Methods to a slice that invoke the methods on s. This can be used to create a more complicated Server.
func PersistentPayment_NewServer ¶
func PersistentPayment_NewServer(s PersistentPayment_Server) *server.Server
PersistentPayment_NewServer creates a new Server from an implementation of PersistentPayment_Server.
Types ¶
type Payment ¶
func Payment_ServerToClient ¶
func Payment_ServerToClient(s Payment_Server) Payment
Payment_ServerToClient creates a new Client from an implementation of Payment_Server. The caller is responsible for calling Release on the returned Client.
func (Payment) 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 (Payment) Commit ¶
func (c Payment) Commit(ctx context.Context, params func(Payment_commit_Params) error) (Payment_commit_Results_Future, capnp.ReleaseFunc)
func (Payment) GetFlowLimiter ¶
func (c Payment) GetFlowLimiter() fc.FlowLimiter
Get the current flowcontrol.FlowLimiter used to manage flow control for this client.
func (Payment) 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 (Payment) 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 (Payment) Release ¶
func (c Payment) 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 (Payment) Resolve ¶
Resolve blocks until the capability is fully resolved or the Context expires.
func (Payment) SetFlowLimiter ¶
func (c Payment) 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 PaymentAcceptor ¶
func PaymentAcceptor_ServerToClient ¶
func PaymentAcceptor_ServerToClient(s PaymentAcceptor_Server) PaymentAcceptor
PaymentAcceptor_ServerToClient creates a new Client from an implementation of PaymentAcceptor_Server. The caller is responsible for calling Release on the returned Client.
func (PaymentAcceptor) AddRef ¶
func (c PaymentAcceptor) AddRef() PaymentAcceptor
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 (PaymentAcceptor) CreatePayment ¶
func (c PaymentAcceptor) CreatePayment(ctx context.Context, params func(PaymentAcceptor_createPayment_Params) error) (PaymentAcceptor_CreatePaymentResults_Future, capnp.ReleaseFunc)
func (PaymentAcceptor) DecodeFromPtr ¶
func (PaymentAcceptor) DecodeFromPtr(p capnp.Ptr) PaymentAcceptor
func (PaymentAcceptor) EncodeAsPtr ¶
func (c PaymentAcceptor) EncodeAsPtr(seg *capnp.Segment) capnp.Ptr
func (PaymentAcceptor) GetFlowLimiter ¶
func (c PaymentAcceptor) GetFlowLimiter() fc.FlowLimiter
Get the current flowcontrol.FlowLimiter used to manage flow control for this client.
func (PaymentAcceptor) IsSame ¶
func (c PaymentAcceptor) IsSame(other PaymentAcceptor) 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 (PaymentAcceptor) IsValid ¶
func (c PaymentAcceptor) 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 (PaymentAcceptor) Release ¶
func (c PaymentAcceptor) 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 (PaymentAcceptor) Resolve ¶
func (c PaymentAcceptor) Resolve(ctx context.Context) error
Resolve blocks until the capability is fully resolved or the Context expires.
func (PaymentAcceptor) SetFlowLimiter ¶
func (c PaymentAcceptor) 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 (PaymentAcceptor) String ¶
func (c PaymentAcceptor) 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 PaymentAcceptor_CreatePaymentResults ¶
func NewPaymentAcceptor_CreatePaymentResults ¶
func NewPaymentAcceptor_CreatePaymentResults(s *capnp.Segment) (PaymentAcceptor_CreatePaymentResults, error)
func NewRootPaymentAcceptor_CreatePaymentResults ¶
func NewRootPaymentAcceptor_CreatePaymentResults(s *capnp.Segment) (PaymentAcceptor_CreatePaymentResults, error)
func ReadRootPaymentAcceptor_CreatePaymentResults ¶
func ReadRootPaymentAcceptor_CreatePaymentResults(msg *capnp.Message) (PaymentAcceptor_CreatePaymentResults, error)
func (PaymentAcceptor_CreatePaymentResults) DecodeFromPtr ¶
func (PaymentAcceptor_CreatePaymentResults) DecodeFromPtr(p capnp.Ptr) PaymentAcceptor_CreatePaymentResults
func (PaymentAcceptor_CreatePaymentResults) EncodeAsPtr ¶
func (s PaymentAcceptor_CreatePaymentResults) EncodeAsPtr(seg *capnp.Segment) capnp.Ptr
func (PaymentAcceptor_CreatePaymentResults) Failed ¶
func (PaymentAcceptor_CreatePaymentResults) IsValid ¶
func (s PaymentAcceptor_CreatePaymentResults) IsValid() bool
func (PaymentAcceptor_CreatePaymentResults) Message ¶
func (s PaymentAcceptor_CreatePaymentResults) Message() *capnp.Message
func (PaymentAcceptor_CreatePaymentResults) Segment ¶
func (s PaymentAcceptor_CreatePaymentResults) Segment() *capnp.Segment
func (PaymentAcceptor_CreatePaymentResults) SetFailed ¶
func (s PaymentAcceptor_CreatePaymentResults) SetFailed()
func (PaymentAcceptor_CreatePaymentResults) SetSuccess ¶
func (s PaymentAcceptor_CreatePaymentResults) SetSuccess()
func (PaymentAcceptor_CreatePaymentResults) String ¶
func (s PaymentAcceptor_CreatePaymentResults) String() string
func (PaymentAcceptor_CreatePaymentResults) Success ¶
func (s PaymentAcceptor_CreatePaymentResults) Success() PaymentAcceptor_CreatePaymentResults_success
func (PaymentAcceptor_CreatePaymentResults) ToPtr ¶
func (s PaymentAcceptor_CreatePaymentResults) ToPtr() capnp.Ptr
func (PaymentAcceptor_CreatePaymentResults) Which ¶
type PaymentAcceptor_CreatePaymentResults_Future ¶
PaymentAcceptor_CreatePaymentResults_Future is a wrapper for a PaymentAcceptor_CreatePaymentResults promised by a client call.
func (PaymentAcceptor_CreatePaymentResults_Future) Failed ¶
func (PaymentAcceptor_CreatePaymentResults_Future) Struct ¶
func (f PaymentAcceptor_CreatePaymentResults_Future) Struct() (PaymentAcceptor_CreatePaymentResults, error)
func (PaymentAcceptor_CreatePaymentResults_Future) Success ¶
type PaymentAcceptor_CreatePaymentResults_List ¶
type PaymentAcceptor_CreatePaymentResults_List = capnp.StructList[PaymentAcceptor_CreatePaymentResults]
PaymentAcceptor_CreatePaymentResults_List is a list of PaymentAcceptor_CreatePaymentResults.
type PaymentAcceptor_CreatePaymentResults_Which ¶
type PaymentAcceptor_CreatePaymentResults_Which uint16
const ( PaymentAcceptor_CreatePaymentResults_Which_success PaymentAcceptor_CreatePaymentResults_Which = 0 PaymentAcceptor_CreatePaymentResults_Which_failed PaymentAcceptor_CreatePaymentResults_Which = 1 )
func (PaymentAcceptor_CreatePaymentResults_Which) String ¶
func (w PaymentAcceptor_CreatePaymentResults_Which) String() string
type PaymentAcceptor_CreatePaymentResults_failed ¶
type PaymentAcceptor_CreatePaymentResults_failed PaymentAcceptor_CreatePaymentResults
func (PaymentAcceptor_CreatePaymentResults_failed) Description ¶
func (s PaymentAcceptor_CreatePaymentResults_failed) Description() (util.LocalizedText, error)
func (PaymentAcceptor_CreatePaymentResults_failed) HasDescription ¶
func (s PaymentAcceptor_CreatePaymentResults_failed) HasDescription() bool
func (PaymentAcceptor_CreatePaymentResults_failed) IsValid ¶
func (s PaymentAcceptor_CreatePaymentResults_failed) IsValid() bool
func (PaymentAcceptor_CreatePaymentResults_failed) Message ¶
func (s PaymentAcceptor_CreatePaymentResults_failed) Message() *capnp.Message
func (PaymentAcceptor_CreatePaymentResults_failed) NewDescription ¶
func (s PaymentAcceptor_CreatePaymentResults_failed) NewDescription() (util.LocalizedText, error)
NewDescription sets the description field to a newly allocated util.LocalizedText struct, preferring placement in s's segment.
func (PaymentAcceptor_CreatePaymentResults_failed) Segment ¶
func (s PaymentAcceptor_CreatePaymentResults_failed) Segment() *capnp.Segment
func (PaymentAcceptor_CreatePaymentResults_failed) SetDescription ¶
func (s PaymentAcceptor_CreatePaymentResults_failed) SetDescription(v util.LocalizedText) error
type PaymentAcceptor_CreatePaymentResults_failed_Future ¶
PaymentAcceptor_CreatePaymentResults_failed_Future is a wrapper for a PaymentAcceptor_CreatePaymentResults_failed promised by a client call.
func (PaymentAcceptor_CreatePaymentResults_failed_Future) Description ¶
func (p PaymentAcceptor_CreatePaymentResults_failed_Future) Description() util.LocalizedText_Future
func (PaymentAcceptor_CreatePaymentResults_failed_Future) Struct ¶
type PaymentAcceptor_CreatePaymentResults_success ¶
type PaymentAcceptor_CreatePaymentResults_success PaymentAcceptor_CreatePaymentResults
func (PaymentAcceptor_CreatePaymentResults_success) HasPayment ¶
func (s PaymentAcceptor_CreatePaymentResults_success) HasPayment() bool
func (PaymentAcceptor_CreatePaymentResults_success) IsValid ¶
func (s PaymentAcceptor_CreatePaymentResults_success) IsValid() bool
func (PaymentAcceptor_CreatePaymentResults_success) Message ¶
func (s PaymentAcceptor_CreatePaymentResults_success) Message() *capnp.Message
func (PaymentAcceptor_CreatePaymentResults_success) Payment ¶
func (s PaymentAcceptor_CreatePaymentResults_success) Payment() Payment
func (PaymentAcceptor_CreatePaymentResults_success) Segment ¶
func (s PaymentAcceptor_CreatePaymentResults_success) Segment() *capnp.Segment
func (PaymentAcceptor_CreatePaymentResults_success) SetPayment ¶
func (s PaymentAcceptor_CreatePaymentResults_success) SetPayment(v Payment) error
type PaymentAcceptor_CreatePaymentResults_success_Future ¶
PaymentAcceptor_CreatePaymentResults_success_Future is a wrapper for a PaymentAcceptor_CreatePaymentResults_success promised by a client call.
func (PaymentAcceptor_CreatePaymentResults_success_Future) Payment ¶
func (p PaymentAcceptor_CreatePaymentResults_success_Future) Payment() Payment
func (PaymentAcceptor_CreatePaymentResults_success_Future) Struct ¶
type PaymentAcceptor_Invoice ¶
func NewPaymentAcceptor_Invoice ¶
func NewPaymentAcceptor_Invoice(s *capnp.Segment) (PaymentAcceptor_Invoice, error)
func NewRootPaymentAcceptor_Invoice ¶
func NewRootPaymentAcceptor_Invoice(s *capnp.Segment) (PaymentAcceptor_Invoice, error)
func ReadRootPaymentAcceptor_Invoice ¶
func ReadRootPaymentAcceptor_Invoice(msg *capnp.Message) (PaymentAcceptor_Invoice, error)
func (PaymentAcceptor_Invoice) DecodeFromPtr ¶
func (PaymentAcceptor_Invoice) DecodeFromPtr(p capnp.Ptr) PaymentAcceptor_Invoice
func (PaymentAcceptor_Invoice) EncodeAsPtr ¶
func (s PaymentAcceptor_Invoice) EncodeAsPtr(seg *capnp.Segment) capnp.Ptr
func (PaymentAcceptor_Invoice) HasItems ¶
func (s PaymentAcceptor_Invoice) HasItems() bool
func (PaymentAcceptor_Invoice) IsValid ¶
func (s PaymentAcceptor_Invoice) IsValid() bool
func (PaymentAcceptor_Invoice) Items ¶
func (s PaymentAcceptor_Invoice) Items() (PaymentAcceptor_Invoice_Item_List, error)
func (PaymentAcceptor_Invoice) Message ¶
func (s PaymentAcceptor_Invoice) Message() *capnp.Message
func (PaymentAcceptor_Invoice) NewItems ¶
func (s PaymentAcceptor_Invoice) NewItems(n int32) (PaymentAcceptor_Invoice_Item_List, error)
NewItems sets the items field to a newly allocated PaymentAcceptor_Invoice_Item_List, preferring placement in s's segment.
func (PaymentAcceptor_Invoice) Segment ¶
func (s PaymentAcceptor_Invoice) Segment() *capnp.Segment
func (PaymentAcceptor_Invoice) SetItems ¶
func (s PaymentAcceptor_Invoice) SetItems(v PaymentAcceptor_Invoice_Item_List) error
func (PaymentAcceptor_Invoice) String ¶
func (s PaymentAcceptor_Invoice) String() string
func (PaymentAcceptor_Invoice) ToPtr ¶
func (s PaymentAcceptor_Invoice) ToPtr() capnp.Ptr
type PaymentAcceptor_Invoice_Future ¶
PaymentAcceptor_Invoice_Future is a wrapper for a PaymentAcceptor_Invoice promised by a client call.
func (PaymentAcceptor_Invoice_Future) Struct ¶
func (f PaymentAcceptor_Invoice_Future) Struct() (PaymentAcceptor_Invoice, error)
type PaymentAcceptor_Invoice_Item ¶
func NewPaymentAcceptor_Invoice_Item ¶
func NewPaymentAcceptor_Invoice_Item(s *capnp.Segment) (PaymentAcceptor_Invoice_Item, error)
func NewRootPaymentAcceptor_Invoice_Item ¶
func NewRootPaymentAcceptor_Invoice_Item(s *capnp.Segment) (PaymentAcceptor_Invoice_Item, error)
func ReadRootPaymentAcceptor_Invoice_Item ¶
func ReadRootPaymentAcceptor_Invoice_Item(msg *capnp.Message) (PaymentAcceptor_Invoice_Item, error)
func (PaymentAcceptor_Invoice_Item) AmountCents ¶
func (s PaymentAcceptor_Invoice_Item) AmountCents() int32
func (PaymentAcceptor_Invoice_Item) DecodeFromPtr ¶
func (PaymentAcceptor_Invoice_Item) DecodeFromPtr(p capnp.Ptr) PaymentAcceptor_Invoice_Item
func (PaymentAcceptor_Invoice_Item) EncodeAsPtr ¶
func (s PaymentAcceptor_Invoice_Item) EncodeAsPtr(seg *capnp.Segment) capnp.Ptr
func (PaymentAcceptor_Invoice_Item) HasTitle ¶
func (s PaymentAcceptor_Invoice_Item) HasTitle() bool
func (PaymentAcceptor_Invoice_Item) IsValid ¶
func (s PaymentAcceptor_Invoice_Item) IsValid() bool
func (PaymentAcceptor_Invoice_Item) Message ¶
func (s PaymentAcceptor_Invoice_Item) Message() *capnp.Message
func (PaymentAcceptor_Invoice_Item) NewTitle ¶
func (s PaymentAcceptor_Invoice_Item) NewTitle() (util.LocalizedText, error)
NewTitle sets the title field to a newly allocated util.LocalizedText struct, preferring placement in s's segment.
func (PaymentAcceptor_Invoice_Item) Segment ¶
func (s PaymentAcceptor_Invoice_Item) Segment() *capnp.Segment
func (PaymentAcceptor_Invoice_Item) SetAmountCents ¶
func (s PaymentAcceptor_Invoice_Item) SetAmountCents(v int32)
func (PaymentAcceptor_Invoice_Item) SetTitle ¶
func (s PaymentAcceptor_Invoice_Item) SetTitle(v util.LocalizedText) error
func (PaymentAcceptor_Invoice_Item) String ¶
func (s PaymentAcceptor_Invoice_Item) String() string
func (PaymentAcceptor_Invoice_Item) Title ¶
func (s PaymentAcceptor_Invoice_Item) Title() (util.LocalizedText, error)
func (PaymentAcceptor_Invoice_Item) ToPtr ¶
func (s PaymentAcceptor_Invoice_Item) ToPtr() capnp.Ptr
type PaymentAcceptor_Invoice_Item_Future ¶
PaymentAcceptor_Invoice_Item_Future is a wrapper for a PaymentAcceptor_Invoice_Item promised by a client call.
func (PaymentAcceptor_Invoice_Item_Future) Struct ¶
func (f PaymentAcceptor_Invoice_Item_Future) Struct() (PaymentAcceptor_Invoice_Item, error)
func (PaymentAcceptor_Invoice_Item_Future) Title ¶
func (p PaymentAcceptor_Invoice_Item_Future) Title() util.LocalizedText_Future
type PaymentAcceptor_Invoice_Item_List ¶
type PaymentAcceptor_Invoice_Item_List = capnp.StructList[PaymentAcceptor_Invoice_Item]
PaymentAcceptor_Invoice_Item_List is a list of PaymentAcceptor_Invoice_Item.
type PaymentAcceptor_Invoice_List ¶
type PaymentAcceptor_Invoice_List = capnp.StructList[PaymentAcceptor_Invoice]
PaymentAcceptor_Invoice_List is a list of PaymentAcceptor_Invoice.
type PaymentAcceptor_List ¶
type PaymentAcceptor_List = capnp.CapList[PaymentAcceptor]
PaymentAcceptor_List is a list of PaymentAcceptor.
type PaymentAcceptor_Server ¶
type PaymentAcceptor_Server interface {
CreatePayment(context.Context, PaymentAcceptor_createPayment) error
}
type PaymentAcceptor_createPayment ¶
PaymentAcceptor_createPayment holds the state for a server call to PaymentAcceptor.createPayment. See server.Call for documentation.
func (PaymentAcceptor_createPayment) AllocResults ¶
func (c PaymentAcceptor_createPayment) AllocResults() (PaymentAcceptor_CreatePaymentResults, error)
AllocResults allocates the results struct.
func (PaymentAcceptor_createPayment) Args ¶
func (c PaymentAcceptor_createPayment) Args() PaymentAcceptor_createPayment_Params
Args returns the call's arguments.
type PaymentAcceptor_createPayment_Params ¶
func NewPaymentAcceptor_createPayment_Params ¶
func NewPaymentAcceptor_createPayment_Params(s *capnp.Segment) (PaymentAcceptor_createPayment_Params, error)
func NewRootPaymentAcceptor_createPayment_Params ¶
func NewRootPaymentAcceptor_createPayment_Params(s *capnp.Segment) (PaymentAcceptor_createPayment_Params, error)
func ReadRootPaymentAcceptor_createPayment_Params ¶
func ReadRootPaymentAcceptor_createPayment_Params(msg *capnp.Message) (PaymentAcceptor_createPayment_Params, error)
func (PaymentAcceptor_createPayment_Params) DecodeFromPtr ¶
func (PaymentAcceptor_createPayment_Params) DecodeFromPtr(p capnp.Ptr) PaymentAcceptor_createPayment_Params
func (PaymentAcceptor_createPayment_Params) EncodeAsPtr ¶
func (s PaymentAcceptor_createPayment_Params) EncodeAsPtr(seg *capnp.Segment) capnp.Ptr
func (PaymentAcceptor_createPayment_Params) HasInvoice ¶
func (s PaymentAcceptor_createPayment_Params) HasInvoice() bool
func (PaymentAcceptor_createPayment_Params) HasSource ¶
func (s PaymentAcceptor_createPayment_Params) HasSource() bool
func (PaymentAcceptor_createPayment_Params) Invoice ¶
func (s PaymentAcceptor_createPayment_Params) Invoice() (PaymentAcceptor_Invoice, error)
func (PaymentAcceptor_createPayment_Params) IsValid ¶
func (s PaymentAcceptor_createPayment_Params) IsValid() bool
func (PaymentAcceptor_createPayment_Params) Message ¶
func (s PaymentAcceptor_createPayment_Params) Message() *capnp.Message
func (PaymentAcceptor_createPayment_Params) NewInvoice ¶
func (s PaymentAcceptor_createPayment_Params) NewInvoice() (PaymentAcceptor_Invoice, error)
NewInvoice sets the invoice field to a newly allocated PaymentAcceptor_Invoice struct, preferring placement in s's segment.
func (PaymentAcceptor_createPayment_Params) Segment ¶
func (s PaymentAcceptor_createPayment_Params) Segment() *capnp.Segment
func (PaymentAcceptor_createPayment_Params) SetInvoice ¶
func (s PaymentAcceptor_createPayment_Params) SetInvoice(v PaymentAcceptor_Invoice) error
func (PaymentAcceptor_createPayment_Params) SetSource ¶
func (s PaymentAcceptor_createPayment_Params) SetSource(v PaymentSource) error
func (PaymentAcceptor_createPayment_Params) Source ¶
func (s PaymentAcceptor_createPayment_Params) Source() PaymentSource
func (PaymentAcceptor_createPayment_Params) String ¶
func (s PaymentAcceptor_createPayment_Params) String() string
func (PaymentAcceptor_createPayment_Params) ToPtr ¶
func (s PaymentAcceptor_createPayment_Params) ToPtr() capnp.Ptr
type PaymentAcceptor_createPayment_Params_Future ¶
PaymentAcceptor_createPayment_Params_Future is a wrapper for a PaymentAcceptor_createPayment_Params promised by a client call.
func (PaymentAcceptor_createPayment_Params_Future) Invoice ¶
func (p PaymentAcceptor_createPayment_Params_Future) Invoice() PaymentAcceptor_Invoice_Future
func (PaymentAcceptor_createPayment_Params_Future) Source ¶
func (p PaymentAcceptor_createPayment_Params_Future) Source() PaymentSource
func (PaymentAcceptor_createPayment_Params_Future) Struct ¶
func (f PaymentAcceptor_createPayment_Params_Future) Struct() (PaymentAcceptor_createPayment_Params, error)
type PaymentAcceptor_createPayment_Params_List ¶
type PaymentAcceptor_createPayment_Params_List = capnp.StructList[PaymentAcceptor_createPayment_Params]
PaymentAcceptor_createPayment_Params_List is a list of PaymentAcceptor_createPayment_Params.
type PaymentSource ¶
func PaymentSource_ServerToClient ¶
func PaymentSource_ServerToClient(s PaymentSource_Server) PaymentSource
PaymentSource_ServerToClient creates a new Client from an implementation of PaymentSource_Server. The caller is responsible for calling Release on the returned Client.
func (PaymentSource) AddRef ¶
func (c PaymentSource) AddRef() PaymentSource
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 (PaymentSource) DecodeFromPtr ¶
func (PaymentSource) DecodeFromPtr(p capnp.Ptr) PaymentSource
func (PaymentSource) GetFlowLimiter ¶
func (c PaymentSource) GetFlowLimiter() fc.FlowLimiter
Get the current flowcontrol.FlowLimiter used to manage flow control for this client.
func (PaymentSource) GetTitle ¶
func (c PaymentSource) GetTitle(ctx context.Context, params func(PaymentSource_getTitle_Params) error) (PaymentSource_getTitle_Results_Future, capnp.ReleaseFunc)
func (PaymentSource) IsSame ¶
func (c PaymentSource) IsSame(other PaymentSource) 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 (PaymentSource) IsValid ¶
func (c PaymentSource) 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 (PaymentSource) Release ¶
func (c PaymentSource) 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 (PaymentSource) Resolve ¶
func (c PaymentSource) Resolve(ctx context.Context) error
Resolve blocks until the capability is fully resolved or the Context expires.
func (PaymentSource) SetFlowLimiter ¶
func (c PaymentSource) 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 (PaymentSource) String ¶
func (c PaymentSource) 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 PaymentSource_List ¶
type PaymentSource_List = capnp.CapList[PaymentSource]
PaymentSource_List is a list of PaymentSource.
type PaymentSource_Server ¶
type PaymentSource_Server interface {
GetTitle(context.Context, PaymentSource_getTitle) error
}
type PaymentSource_getTitle ¶
PaymentSource_getTitle holds the state for a server call to PaymentSource.getTitle. See server.Call for documentation.
func (PaymentSource_getTitle) AllocResults ¶
func (c PaymentSource_getTitle) AllocResults() (PaymentSource_getTitle_Results, error)
AllocResults allocates the results struct.
func (PaymentSource_getTitle) Args ¶
func (c PaymentSource_getTitle) Args() PaymentSource_getTitle_Params
Args returns the call's arguments.
type PaymentSource_getTitle_Params ¶
func NewPaymentSource_getTitle_Params ¶
func NewPaymentSource_getTitle_Params(s *capnp.Segment) (PaymentSource_getTitle_Params, error)
func NewRootPaymentSource_getTitle_Params ¶
func NewRootPaymentSource_getTitle_Params(s *capnp.Segment) (PaymentSource_getTitle_Params, error)
func ReadRootPaymentSource_getTitle_Params ¶
func ReadRootPaymentSource_getTitle_Params(msg *capnp.Message) (PaymentSource_getTitle_Params, error)
func (PaymentSource_getTitle_Params) DecodeFromPtr ¶
func (PaymentSource_getTitle_Params) DecodeFromPtr(p capnp.Ptr) PaymentSource_getTitle_Params
func (PaymentSource_getTitle_Params) EncodeAsPtr ¶
func (s PaymentSource_getTitle_Params) EncodeAsPtr(seg *capnp.Segment) capnp.Ptr
func (PaymentSource_getTitle_Params) IsValid ¶
func (s PaymentSource_getTitle_Params) IsValid() bool
func (PaymentSource_getTitle_Params) Message ¶
func (s PaymentSource_getTitle_Params) Message() *capnp.Message
func (PaymentSource_getTitle_Params) Segment ¶
func (s PaymentSource_getTitle_Params) Segment() *capnp.Segment
func (PaymentSource_getTitle_Params) String ¶
func (s PaymentSource_getTitle_Params) String() string
func (PaymentSource_getTitle_Params) ToPtr ¶
func (s PaymentSource_getTitle_Params) ToPtr() capnp.Ptr
type PaymentSource_getTitle_Params_Future ¶
PaymentSource_getTitle_Params_Future is a wrapper for a PaymentSource_getTitle_Params promised by a client call.
func (PaymentSource_getTitle_Params_Future) Struct ¶
func (f PaymentSource_getTitle_Params_Future) Struct() (PaymentSource_getTitle_Params, error)
type PaymentSource_getTitle_Params_List ¶
type PaymentSource_getTitle_Params_List = capnp.StructList[PaymentSource_getTitle_Params]
PaymentSource_getTitle_Params_List is a list of PaymentSource_getTitle_Params.
type PaymentSource_getTitle_Results ¶
func NewPaymentSource_getTitle_Results ¶
func NewPaymentSource_getTitle_Results(s *capnp.Segment) (PaymentSource_getTitle_Results, error)
func NewRootPaymentSource_getTitle_Results ¶
func NewRootPaymentSource_getTitle_Results(s *capnp.Segment) (PaymentSource_getTitle_Results, error)
func ReadRootPaymentSource_getTitle_Results ¶
func ReadRootPaymentSource_getTitle_Results(msg *capnp.Message) (PaymentSource_getTitle_Results, error)
func (PaymentSource_getTitle_Results) DecodeFromPtr ¶
func (PaymentSource_getTitle_Results) DecodeFromPtr(p capnp.Ptr) PaymentSource_getTitle_Results
func (PaymentSource_getTitle_Results) EncodeAsPtr ¶
func (s PaymentSource_getTitle_Results) EncodeAsPtr(seg *capnp.Segment) capnp.Ptr
func (PaymentSource_getTitle_Results) HasTitle ¶
func (s PaymentSource_getTitle_Results) HasTitle() bool
func (PaymentSource_getTitle_Results) IsValid ¶
func (s PaymentSource_getTitle_Results) IsValid() bool
func (PaymentSource_getTitle_Results) Message ¶
func (s PaymentSource_getTitle_Results) Message() *capnp.Message
func (PaymentSource_getTitle_Results) NewTitle ¶
func (s PaymentSource_getTitle_Results) NewTitle() (util.LocalizedText, error)
NewTitle sets the title field to a newly allocated util.LocalizedText struct, preferring placement in s's segment.
func (PaymentSource_getTitle_Results) Segment ¶
func (s PaymentSource_getTitle_Results) Segment() *capnp.Segment
func (PaymentSource_getTitle_Results) SetTitle ¶
func (s PaymentSource_getTitle_Results) SetTitle(v util.LocalizedText) error
func (PaymentSource_getTitle_Results) String ¶
func (s PaymentSource_getTitle_Results) String() string
func (PaymentSource_getTitle_Results) Title ¶
func (s PaymentSource_getTitle_Results) Title() (util.LocalizedText, error)
func (PaymentSource_getTitle_Results) ToPtr ¶
func (s PaymentSource_getTitle_Results) ToPtr() capnp.Ptr
type PaymentSource_getTitle_Results_Future ¶
PaymentSource_getTitle_Results_Future is a wrapper for a PaymentSource_getTitle_Results promised by a client call.
func (PaymentSource_getTitle_Results_Future) Struct ¶
func (f PaymentSource_getTitle_Results_Future) Struct() (PaymentSource_getTitle_Results, error)
func (PaymentSource_getTitle_Results_Future) Title ¶
func (p PaymentSource_getTitle_Results_Future) Title() util.LocalizedText_Future
type PaymentSource_getTitle_Results_List ¶
type PaymentSource_getTitle_Results_List = capnp.StructList[PaymentSource_getTitle_Results]
PaymentSource_getTitle_Results_List is a list of PaymentSource_getTitle_Results.
type Payment_List ¶
Payment_List is a list of Payment.
type Payment_Server ¶
type Payment_Server interface {
Commit(context.Context, Payment_commit) error
}
type Payment_commit ¶
Payment_commit holds the state for a server call to Payment.commit. See server.Call for documentation.
func (Payment_commit) AllocResults ¶
func (c Payment_commit) AllocResults() (Payment_commit_Results, error)
AllocResults allocates the results struct.
func (Payment_commit) Args ¶
func (c Payment_commit) Args() Payment_commit_Params
Args returns the call's arguments.
type Payment_commit_Params ¶
func NewPayment_commit_Params ¶
func NewPayment_commit_Params(s *capnp.Segment) (Payment_commit_Params, error)
func NewRootPayment_commit_Params ¶
func NewRootPayment_commit_Params(s *capnp.Segment) (Payment_commit_Params, error)
func ReadRootPayment_commit_Params ¶
func ReadRootPayment_commit_Params(msg *capnp.Message) (Payment_commit_Params, error)
func (Payment_commit_Params) DecodeFromPtr ¶
func (Payment_commit_Params) DecodeFromPtr(p capnp.Ptr) Payment_commit_Params
func (Payment_commit_Params) EncodeAsPtr ¶
func (s Payment_commit_Params) EncodeAsPtr(seg *capnp.Segment) capnp.Ptr
func (Payment_commit_Params) IsValid ¶
func (s Payment_commit_Params) IsValid() bool
func (Payment_commit_Params) Message ¶
func (s Payment_commit_Params) Message() *capnp.Message
func (Payment_commit_Params) Segment ¶
func (s Payment_commit_Params) Segment() *capnp.Segment
func (Payment_commit_Params) String ¶
func (s Payment_commit_Params) String() string
func (Payment_commit_Params) ToPtr ¶
func (s Payment_commit_Params) ToPtr() capnp.Ptr
type Payment_commit_Params_Future ¶
Payment_commit_Params_Future is a wrapper for a Payment_commit_Params promised by a client call.
func (Payment_commit_Params_Future) Struct ¶
func (f Payment_commit_Params_Future) Struct() (Payment_commit_Params, error)
type Payment_commit_Params_List ¶
type Payment_commit_Params_List = capnp.StructList[Payment_commit_Params]
Payment_commit_Params_List is a list of Payment_commit_Params.
type Payment_commit_Results ¶
func NewPayment_commit_Results ¶
func NewPayment_commit_Results(s *capnp.Segment) (Payment_commit_Results, error)
func NewRootPayment_commit_Results ¶
func NewRootPayment_commit_Results(s *capnp.Segment) (Payment_commit_Results, error)
func ReadRootPayment_commit_Results ¶
func ReadRootPayment_commit_Results(msg *capnp.Message) (Payment_commit_Results, error)
func (Payment_commit_Results) DecodeFromPtr ¶
func (Payment_commit_Results) DecodeFromPtr(p capnp.Ptr) Payment_commit_Results
func (Payment_commit_Results) EncodeAsPtr ¶
func (s Payment_commit_Results) EncodeAsPtr(seg *capnp.Segment) capnp.Ptr
func (Payment_commit_Results) IsValid ¶
func (s Payment_commit_Results) IsValid() bool
func (Payment_commit_Results) Message ¶
func (s Payment_commit_Results) Message() *capnp.Message
func (Payment_commit_Results) Segment ¶
func (s Payment_commit_Results) Segment() *capnp.Segment
func (Payment_commit_Results) String ¶
func (s Payment_commit_Results) String() string
func (Payment_commit_Results) ToPtr ¶
func (s Payment_commit_Results) ToPtr() capnp.Ptr
type Payment_commit_Results_Future ¶
Payment_commit_Results_Future is a wrapper for a Payment_commit_Results promised by a client call.
func (Payment_commit_Results_Future) Struct ¶
func (f Payment_commit_Results_Future) Struct() (Payment_commit_Results, error)
type Payment_commit_Results_List ¶
type Payment_commit_Results_List = capnp.StructList[Payment_commit_Results]
Payment_commit_Results_List is a list of Payment_commit_Results.
type PersistentPayment ¶
func PersistentPayment_ServerToClient ¶
func PersistentPayment_ServerToClient(s PersistentPayment_Server) PersistentPayment
PersistentPayment_ServerToClient creates a new Client from an implementation of PersistentPayment_Server. The caller is responsible for calling Release on the returned Client.
func (PersistentPayment) AddRef ¶
func (c PersistentPayment) AddRef() PersistentPayment
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 (PersistentPayment) AddRequirements ¶
func (c PersistentPayment) AddRequirements(ctx context.Context, params func(supervisor.SystemPersistent_addRequirements_Params) error) (supervisor.SystemPersistent_addRequirements_Results_Future, capnp.ReleaseFunc)
func (PersistentPayment) Commit ¶
func (c PersistentPayment) Commit(ctx context.Context, params func(Payment_commit_Params) error) (Payment_commit_Results_Future, capnp.ReleaseFunc)
func (PersistentPayment) DecodeFromPtr ¶
func (PersistentPayment) DecodeFromPtr(p capnp.Ptr) PersistentPayment
func (PersistentPayment) EncodeAsPtr ¶
func (c PersistentPayment) EncodeAsPtr(seg *capnp.Segment) capnp.Ptr
func (PersistentPayment) GetFlowLimiter ¶
func (c PersistentPayment) GetFlowLimiter() fc.FlowLimiter
Get the current flowcontrol.FlowLimiter used to manage flow control for this client.
func (PersistentPayment) IsSame ¶
func (c PersistentPayment) IsSame(other PersistentPayment) 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 (PersistentPayment) IsValid ¶
func (c PersistentPayment) 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 (PersistentPayment) Release ¶
func (c PersistentPayment) 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 (PersistentPayment) Resolve ¶
func (c PersistentPayment) Resolve(ctx context.Context) error
Resolve blocks until the capability is fully resolved or the Context expires.
func (PersistentPayment) Save ¶
func (c PersistentPayment) Save(ctx context.Context, params func(persistent.Persistent_SaveParams) error) (persistent.Persistent_SaveResults_Future, capnp.ReleaseFunc)
func (PersistentPayment) SetFlowLimiter ¶
func (c PersistentPayment) 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 (PersistentPayment) String ¶
func (c PersistentPayment) 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 PersistentPaymentAcceptor ¶
func PersistentPaymentAcceptor_ServerToClient ¶
func PersistentPaymentAcceptor_ServerToClient(s PersistentPaymentAcceptor_Server) PersistentPaymentAcceptor
PersistentPaymentAcceptor_ServerToClient creates a new Client from an implementation of PersistentPaymentAcceptor_Server. The caller is responsible for calling Release on the returned Client.
func (PersistentPaymentAcceptor) AddRef ¶
func (c PersistentPaymentAcceptor) AddRef() PersistentPaymentAcceptor
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 (PersistentPaymentAcceptor) AddRequirements ¶
func (c PersistentPaymentAcceptor) AddRequirements(ctx context.Context, params func(supervisor.SystemPersistent_addRequirements_Params) error) (supervisor.SystemPersistent_addRequirements_Results_Future, capnp.ReleaseFunc)
func (PersistentPaymentAcceptor) CreatePayment ¶
func (c PersistentPaymentAcceptor) CreatePayment(ctx context.Context, params func(PaymentAcceptor_createPayment_Params) error) (PaymentAcceptor_CreatePaymentResults_Future, capnp.ReleaseFunc)
func (PersistentPaymentAcceptor) DecodeFromPtr ¶
func (PersistentPaymentAcceptor) DecodeFromPtr(p capnp.Ptr) PersistentPaymentAcceptor
func (PersistentPaymentAcceptor) EncodeAsPtr ¶
func (c PersistentPaymentAcceptor) EncodeAsPtr(seg *capnp.Segment) capnp.Ptr
func (PersistentPaymentAcceptor) GetFlowLimiter ¶
func (c PersistentPaymentAcceptor) GetFlowLimiter() fc.FlowLimiter
Get the current flowcontrol.FlowLimiter used to manage flow control for this client.
func (PersistentPaymentAcceptor) IsSame ¶
func (c PersistentPaymentAcceptor) IsSame(other PersistentPaymentAcceptor) 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 (PersistentPaymentAcceptor) IsValid ¶
func (c PersistentPaymentAcceptor) 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 (PersistentPaymentAcceptor) Release ¶
func (c PersistentPaymentAcceptor) 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 (PersistentPaymentAcceptor) Resolve ¶
func (c PersistentPaymentAcceptor) Resolve(ctx context.Context) error
Resolve blocks until the capability is fully resolved or the Context expires.
func (PersistentPaymentAcceptor) Save ¶
func (c PersistentPaymentAcceptor) Save(ctx context.Context, params func(persistent.Persistent_SaveParams) error) (persistent.Persistent_SaveResults_Future, capnp.ReleaseFunc)
func (PersistentPaymentAcceptor) SetFlowLimiter ¶
func (c PersistentPaymentAcceptor) 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 (PersistentPaymentAcceptor) String ¶
func (c PersistentPaymentAcceptor) 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 PersistentPaymentAcceptor_List ¶
type PersistentPaymentAcceptor_List = capnp.CapList[PersistentPaymentAcceptor]
PersistentPaymentAcceptor_List is a list of PersistentPaymentAcceptor.
type PersistentPaymentAcceptor_Server ¶
type PersistentPaymentAcceptor_Server interface { CreatePayment(context.Context, PaymentAcceptor_createPayment) error AddRequirements(context.Context, supervisor.SystemPersistent_addRequirements) error Save(context.Context, persistent.Persistent_save) error }
type PersistentPaymentSource ¶
func PersistentPaymentSource_ServerToClient ¶
func PersistentPaymentSource_ServerToClient(s PersistentPaymentSource_Server) PersistentPaymentSource
PersistentPaymentSource_ServerToClient creates a new Client from an implementation of PersistentPaymentSource_Server. The caller is responsible for calling Release on the returned Client.
func (PersistentPaymentSource) AddRef ¶
func (c PersistentPaymentSource) AddRef() PersistentPaymentSource
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 (PersistentPaymentSource) AddRequirements ¶
func (c PersistentPaymentSource) AddRequirements(ctx context.Context, params func(supervisor.SystemPersistent_addRequirements_Params) error) (supervisor.SystemPersistent_addRequirements_Results_Future, capnp.ReleaseFunc)
func (PersistentPaymentSource) DecodeFromPtr ¶
func (PersistentPaymentSource) DecodeFromPtr(p capnp.Ptr) PersistentPaymentSource
func (PersistentPaymentSource) EncodeAsPtr ¶
func (c PersistentPaymentSource) EncodeAsPtr(seg *capnp.Segment) capnp.Ptr
func (PersistentPaymentSource) GetFlowLimiter ¶
func (c PersistentPaymentSource) GetFlowLimiter() fc.FlowLimiter
Get the current flowcontrol.FlowLimiter used to manage flow control for this client.
func (PersistentPaymentSource) GetTitle ¶
func (c PersistentPaymentSource) GetTitle(ctx context.Context, params func(PaymentSource_getTitle_Params) error) (PaymentSource_getTitle_Results_Future, capnp.ReleaseFunc)
func (PersistentPaymentSource) IsSame ¶
func (c PersistentPaymentSource) IsSame(other PersistentPaymentSource) 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 (PersistentPaymentSource) IsValid ¶
func (c PersistentPaymentSource) 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 (PersistentPaymentSource) Release ¶
func (c PersistentPaymentSource) 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 (PersistentPaymentSource) Resolve ¶
func (c PersistentPaymentSource) Resolve(ctx context.Context) error
Resolve blocks until the capability is fully resolved or the Context expires.
func (PersistentPaymentSource) Save ¶
func (c PersistentPaymentSource) Save(ctx context.Context, params func(persistent.Persistent_SaveParams) error) (persistent.Persistent_SaveResults_Future, capnp.ReleaseFunc)
func (PersistentPaymentSource) SetFlowLimiter ¶
func (c PersistentPaymentSource) 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 (PersistentPaymentSource) String ¶
func (c PersistentPaymentSource) 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 PersistentPaymentSource_List ¶
type PersistentPaymentSource_List = capnp.CapList[PersistentPaymentSource]
PersistentPaymentSource_List is a list of PersistentPaymentSource.
type PersistentPaymentSource_Server ¶
type PersistentPaymentSource_Server interface { GetTitle(context.Context, PaymentSource_getTitle) error AddRequirements(context.Context, supervisor.SystemPersistent_addRequirements) error Save(context.Context, persistent.Persistent_save) error }
type PersistentPayment_List ¶
type PersistentPayment_List = capnp.CapList[PersistentPayment]
PersistentPayment_List is a list of PersistentPayment.
type PersistentPayment_Server ¶
type PersistentPayment_Server interface { Commit(context.Context, Payment_commit) error AddRequirements(context.Context, supervisor.SystemPersistent_addRequirements) error Save(context.Context, persistent.Persistent_save) error }