payments

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: 11 Imported by: 0

Documentation

Index

Constants

View Source
const PaymentAcceptor_CreatePaymentResults_TypeID = 0xeedba0c4417e0460

PaymentAcceptor_CreatePaymentResults_TypeID is the unique identifier for the type PaymentAcceptor_CreatePaymentResults.

View Source
const PaymentAcceptor_Invoice_Item_TypeID = 0xfe043eafc75e52c0

PaymentAcceptor_Invoice_Item_TypeID is the unique identifier for the type PaymentAcceptor_Invoice_Item.

View Source
const PaymentAcceptor_Invoice_TypeID = 0x91d6a3469f738613

PaymentAcceptor_Invoice_TypeID is the unique identifier for the type PaymentAcceptor_Invoice.

View Source
const PaymentAcceptor_TypeID = 0xd562e38729bbd911

PaymentAcceptor_TypeID is the unique identifier for the type PaymentAcceptor.

View Source
const PaymentAcceptor_createPayment_Params_TypeID = 0x9fe16028dd10ba82

PaymentAcceptor_createPayment_Params_TypeID is the unique identifier for the type PaymentAcceptor_createPayment_Params.

View Source
const PaymentSource_TypeID = 0xf9692c357124ed70

PaymentSource_TypeID is the unique identifier for the type PaymentSource.

View Source
const PaymentSource_getTitle_Params_TypeID = 0xcb2516f79343cbe3

PaymentSource_getTitle_Params_TypeID is the unique identifier for the type PaymentSource_getTitle_Params.

View Source
const PaymentSource_getTitle_Results_TypeID = 0xaf4ce1881ecae0ae

PaymentSource_getTitle_Results_TypeID is the unique identifier for the type PaymentSource_getTitle_Results.

View Source
const Payment_TypeID = 0xc5203e36361f382d

Payment_TypeID is the unique identifier for the type Payment.

View Source
const Payment_commit_Params_TypeID = 0xbe3b7a8d4c9cd5b5

Payment_commit_Params_TypeID is the unique identifier for the type Payment_commit_Params.

View Source
const Payment_commit_Results_TypeID = 0xb3942c4ba1c3c70f

Payment_commit_Results_TypeID is the unique identifier for the type Payment_commit_Results.

View Source
const PersistentPaymentAcceptor_TypeID = 0xe70f1d4eea79f6f5

PersistentPaymentAcceptor_TypeID is the unique identifier for the type PersistentPaymentAcceptor.

View Source
const PersistentPaymentSource_TypeID = 0xa66dd2d4c80d0fae

PersistentPaymentSource_TypeID is the unique identifier for the type PersistentPaymentSource.

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

type Payment capnp.Client

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

func (c Payment) AddRef() Payment

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

func (Payment) DecodeFromPtr(p capnp.Ptr) Payment

func (Payment) EncodeAsPtr

func (c Payment) EncodeAsPtr(seg *capnp.Segment) capnp.Ptr

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

func (c Payment) IsSame(other Payment) 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 (Payment) IsValid

func (c Payment) 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 (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

func (c Payment) Resolve(ctx context.Context) error

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.

func (Payment) String

func (c Payment) 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

type PaymentAcceptor capnp.Client

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

type PaymentAcceptor_CreatePaymentResults capnp.Struct

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

func (PaymentAcceptor_CreatePaymentResults) Failed

func (PaymentAcceptor_CreatePaymentResults) IsValid

func (PaymentAcceptor_CreatePaymentResults) Message

func (PaymentAcceptor_CreatePaymentResults) Segment

func (PaymentAcceptor_CreatePaymentResults) SetFailed

func (PaymentAcceptor_CreatePaymentResults) SetSuccess

func (s PaymentAcceptor_CreatePaymentResults) SetSuccess()

func (PaymentAcceptor_CreatePaymentResults) String

func (PaymentAcceptor_CreatePaymentResults) Success

func (PaymentAcceptor_CreatePaymentResults) ToPtr

func (PaymentAcceptor_CreatePaymentResults) Which

type PaymentAcceptor_CreatePaymentResults_Future

type PaymentAcceptor_CreatePaymentResults_Future struct{ *capnp.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 (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.

func NewPaymentAcceptor_CreatePaymentResults_List

func NewPaymentAcceptor_CreatePaymentResults_List(s *capnp.Segment, sz int32) (PaymentAcceptor_CreatePaymentResults_List, error)

NewPaymentAcceptor_CreatePaymentResults creates a new 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

type PaymentAcceptor_CreatePaymentResults_failed

type PaymentAcceptor_CreatePaymentResults_failed PaymentAcceptor_CreatePaymentResults

func (PaymentAcceptor_CreatePaymentResults_failed) Description

func (PaymentAcceptor_CreatePaymentResults_failed) HasDescription

func (PaymentAcceptor_CreatePaymentResults_failed) IsValid

func (PaymentAcceptor_CreatePaymentResults_failed) Message

func (PaymentAcceptor_CreatePaymentResults_failed) NewDescription

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

func (PaymentAcceptor_CreatePaymentResults_failed) Segment

func (PaymentAcceptor_CreatePaymentResults_failed) SetDescription

type PaymentAcceptor_CreatePaymentResults_failed_Future

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

type PaymentAcceptor_CreatePaymentResults_success

type PaymentAcceptor_CreatePaymentResults_success PaymentAcceptor_CreatePaymentResults

func (PaymentAcceptor_CreatePaymentResults_success) HasPayment

func (PaymentAcceptor_CreatePaymentResults_success) IsValid

func (PaymentAcceptor_CreatePaymentResults_success) Message

func (PaymentAcceptor_CreatePaymentResults_success) Payment

func (PaymentAcceptor_CreatePaymentResults_success) Segment

func (PaymentAcceptor_CreatePaymentResults_success) SetPayment

type PaymentAcceptor_CreatePaymentResults_success_Future

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

type PaymentAcceptor_Invoice

type PaymentAcceptor_Invoice capnp.Struct

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

func (s PaymentAcceptor_Invoice) Message() *capnp.Message

func (PaymentAcceptor_Invoice) NewItems

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

func (s PaymentAcceptor_Invoice) String() string

func (PaymentAcceptor_Invoice) ToPtr

func (s PaymentAcceptor_Invoice) ToPtr() capnp.Ptr

type PaymentAcceptor_Invoice_Future

type PaymentAcceptor_Invoice_Future struct{ *capnp.Future }

PaymentAcceptor_Invoice_Future is a wrapper for a PaymentAcceptor_Invoice promised by a client call.

func (PaymentAcceptor_Invoice_Future) Struct

type PaymentAcceptor_Invoice_Item

type PaymentAcceptor_Invoice_Item capnp.Struct

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) 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 (PaymentAcceptor_Invoice_Item) NewTitle

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

func (PaymentAcceptor_Invoice_Item) Segment

func (PaymentAcceptor_Invoice_Item) SetAmountCents

func (s PaymentAcceptor_Invoice_Item) SetAmountCents(v int32)

func (PaymentAcceptor_Invoice_Item) SetTitle

func (PaymentAcceptor_Invoice_Item) String

func (PaymentAcceptor_Invoice_Item) Title

func (PaymentAcceptor_Invoice_Item) ToPtr

type PaymentAcceptor_Invoice_Item_Future

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

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.

func NewPaymentAcceptor_Invoice_Item_List

func NewPaymentAcceptor_Invoice_Item_List(s *capnp.Segment, sz int32) (PaymentAcceptor_Invoice_Item_List, error)

NewPaymentAcceptor_Invoice_Item creates a new 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.

func NewPaymentAcceptor_Invoice_List

func NewPaymentAcceptor_Invoice_List(s *capnp.Segment, sz int32) (PaymentAcceptor_Invoice_List, error)

NewPaymentAcceptor_Invoice creates a new list of PaymentAcceptor_Invoice.

type PaymentAcceptor_List

type PaymentAcceptor_List = capnp.CapList[PaymentAcceptor]

PaymentAcceptor_List is a list of PaymentAcceptor.

func NewPaymentAcceptor_List

func NewPaymentAcceptor_List(s *capnp.Segment, sz int32) (PaymentAcceptor_List, error)

NewPaymentAcceptor creates a new list of PaymentAcceptor.

type PaymentAcceptor_Server

type PaymentAcceptor_Server interface {
	CreatePayment(context.Context, PaymentAcceptor_createPayment) error
}

type PaymentAcceptor_createPayment

type PaymentAcceptor_createPayment struct {
	*server.Call
}

PaymentAcceptor_createPayment holds the state for a server call to PaymentAcceptor.createPayment. See server.Call for documentation.

func (PaymentAcceptor_createPayment) AllocResults

AllocResults allocates the results struct.

func (PaymentAcceptor_createPayment) Args

Args returns the call's arguments.

type PaymentAcceptor_createPayment_Params

type PaymentAcceptor_createPayment_Params capnp.Struct

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

func (PaymentAcceptor_createPayment_Params) HasInvoice

func (PaymentAcceptor_createPayment_Params) HasSource

func (PaymentAcceptor_createPayment_Params) Invoice

func (PaymentAcceptor_createPayment_Params) IsValid

func (PaymentAcceptor_createPayment_Params) Message

func (PaymentAcceptor_createPayment_Params) NewInvoice

NewInvoice sets the invoice field to a newly allocated PaymentAcceptor_Invoice struct, preferring placement in s's segment.

func (PaymentAcceptor_createPayment_Params) Segment

func (PaymentAcceptor_createPayment_Params) SetInvoice

func (PaymentAcceptor_createPayment_Params) SetSource

func (PaymentAcceptor_createPayment_Params) Source

func (PaymentAcceptor_createPayment_Params) String

func (PaymentAcceptor_createPayment_Params) ToPtr

type PaymentAcceptor_createPayment_Params_Future

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

func (PaymentAcceptor_createPayment_Params_Future) Struct

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.

func NewPaymentAcceptor_createPayment_Params_List

func NewPaymentAcceptor_createPayment_Params_List(s *capnp.Segment, sz int32) (PaymentAcceptor_createPayment_Params_List, error)

NewPaymentAcceptor_createPayment_Params creates a new list of PaymentAcceptor_createPayment_Params.

type PaymentSource

type PaymentSource capnp.Client

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

func (c PaymentSource) EncodeAsPtr(seg *capnp.Segment) capnp.Ptr

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 (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.

func NewPaymentSource_List

func NewPaymentSource_List(s *capnp.Segment, sz int32) (PaymentSource_List, error)

NewPaymentSource creates a new list of PaymentSource.

type PaymentSource_Server

type PaymentSource_Server interface {
	GetTitle(context.Context, PaymentSource_getTitle) error
}

type PaymentSource_getTitle

type PaymentSource_getTitle struct {
	*server.Call
}

PaymentSource_getTitle holds the state for a server call to PaymentSource.getTitle. See server.Call for documentation.

func (PaymentSource_getTitle) AllocResults

AllocResults allocates the results struct.

func (PaymentSource_getTitle) Args

Args returns the call's arguments.

type PaymentSource_getTitle_Params

type PaymentSource_getTitle_Params capnp.Struct

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) 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 (PaymentSource_getTitle_Params) Segment

func (PaymentSource_getTitle_Params) String

func (PaymentSource_getTitle_Params) ToPtr

type PaymentSource_getTitle_Params_Future

type PaymentSource_getTitle_Params_Future struct{ *capnp.Future }

PaymentSource_getTitle_Params_Future is a wrapper for a PaymentSource_getTitle_Params promised by a client call.

func (PaymentSource_getTitle_Params_Future) Struct

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.

func NewPaymentSource_getTitle_Params_List

func NewPaymentSource_getTitle_Params_List(s *capnp.Segment, sz int32) (PaymentSource_getTitle_Params_List, error)

NewPaymentSource_getTitle_Params creates a new list of PaymentSource_getTitle_Params.

type PaymentSource_getTitle_Results

type PaymentSource_getTitle_Results capnp.Struct

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

func (PaymentSource_getTitle_Results) HasTitle

func (s PaymentSource_getTitle_Results) HasTitle() bool

func (PaymentSource_getTitle_Results) IsValid

func (PaymentSource_getTitle_Results) Message

func (PaymentSource_getTitle_Results) NewTitle

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

func (PaymentSource_getTitle_Results) Segment

func (PaymentSource_getTitle_Results) SetTitle

func (PaymentSource_getTitle_Results) String

func (PaymentSource_getTitle_Results) Title

func (PaymentSource_getTitle_Results) ToPtr

type PaymentSource_getTitle_Results_Future

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

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.

func NewPaymentSource_getTitle_Results_List

func NewPaymentSource_getTitle_Results_List(s *capnp.Segment, sz int32) (PaymentSource_getTitle_Results_List, error)

NewPaymentSource_getTitle_Results creates a new list of PaymentSource_getTitle_Results.

type Payment_List

type Payment_List = capnp.CapList[Payment]

Payment_List is a list of Payment.

func NewPayment_List

func NewPayment_List(s *capnp.Segment, sz int32) (Payment_List, error)

NewPayment creates a new list of Payment.

type Payment_Server

type Payment_Server interface {
	Commit(context.Context, Payment_commit) error
}

type Payment_commit

type Payment_commit struct {
	*server.Call
}

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

Args returns the call's arguments.

type Payment_commit_Params

type Payment_commit_Params capnp.Struct

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

type Payment_commit_Params_Future struct{ *capnp.Future }

Payment_commit_Params_Future is a wrapper for a Payment_commit_Params promised by a client call.

func (Payment_commit_Params_Future) Struct

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.

func NewPayment_commit_Params_List

func NewPayment_commit_Params_List(s *capnp.Segment, sz int32) (Payment_commit_Params_List, error)

NewPayment_commit_Params creates a new list of Payment_commit_Params.

type Payment_commit_Results

type Payment_commit_Results capnp.Struct

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

type Payment_commit_Results_Future struct{ *capnp.Future }

Payment_commit_Results_Future is a wrapper for a Payment_commit_Results promised by a client call.

func (Payment_commit_Results_Future) Struct

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.

func NewPayment_commit_Results_List

func NewPayment_commit_Results_List(s *capnp.Segment, sz int32) (Payment_commit_Results_List, error)

NewPayment_commit_Results creates a new list of Payment_commit_Results.

type PersistentPayment

type PersistentPayment capnp.Client

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

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

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

type PersistentPaymentAcceptor capnp.Client

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

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

func (PersistentPaymentAcceptor) DecodeFromPtr

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

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

Resolve blocks until the capability is fully resolved or the Context expires.

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.

func NewPersistentPaymentAcceptor_List

func NewPersistentPaymentAcceptor_List(s *capnp.Segment, sz int32) (PersistentPaymentAcceptor_List, error)

NewPersistentPaymentAcceptor creates a new 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

type PersistentPaymentSource capnp.Client

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

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

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

Resolve blocks until the capability is fully resolved or the Context expires.

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.

func NewPersistentPaymentSource_List

func NewPersistentPaymentSource_List(s *capnp.Segment, sz int32) (PersistentPaymentSource_List, error)

NewPersistentPaymentSource creates a new 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.

func NewPersistentPayment_List

func NewPersistentPayment_List(s *capnp.Segment, sz int32) (PersistentPayment_List, error)

NewPersistentPayment creates a new 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
}

Jump to

Keyboard shortcuts

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