Documentation
¶
Overview ¶
Package as2_incoming_message is the Files.com API client package for the files_sdk.As2IncomingMessage model.
Index ¶
- func Find(params files_sdk.As2IncomingMessageFindParams, ...) (as2IncomingMessage files_sdk.As2IncomingMessage, err error)
- func Replay(params files_sdk.As2IncomingMessageReplayParams, ...) (as2IncomingMessage files_sdk.As2IncomingMessage, err error)
- type Client
- func (c *Client) Find(params files_sdk.As2IncomingMessageFindParams, ...) (as2IncomingMessage files_sdk.As2IncomingMessage, err error)
- func (c *Client) List(params files_sdk.As2IncomingMessageListParams, ...) (*Iter, error)
- func (c *Client) Replay(params files_sdk.As2IncomingMessageReplayParams, ...) (as2IncomingMessage files_sdk.As2IncomingMessage, err error)
- type Iter
- func (i *Iter) All() iter.Seq2[files_sdk.As2IncomingMessage, error]
- func (i *Iter) As2IncomingMessage() files_sdk.As2IncomingMessage
- func (i *Iter) LoadResource(identifier interface{}, opts ...files_sdk.RequestResponseOption) (interface{}, error)
- func (i *Iter) Reload(opts ...files_sdk.RequestResponseOption) files_sdk.IterI
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Find ¶ added in v3.3.328
func Find(params files_sdk.As2IncomingMessageFindParams, opts ...files_sdk.RequestResponseOption) (as2IncomingMessage files_sdk.As2IncomingMessage, err error)
Find calls Client.Find using the default configuration.
func Replay ¶ added in v3.3.327
func Replay(params files_sdk.As2IncomingMessageReplayParams, opts ...files_sdk.RequestResponseOption) (as2IncomingMessage files_sdk.As2IncomingMessage, err error)
Replay calls Client.Replay using the default configuration.
Types ¶
type Client ¶
Client calls the As2IncomingMessage API using its embedded Config.
func (*Client) Find ¶ added in v3.3.328
func (c *Client) Find(params files_sdk.As2IncomingMessageFindParams, opts ...files_sdk.RequestResponseOption) (as2IncomingMessage files_sdk.As2IncomingMessage, err error)
Find calls GET /as2_incoming_messages/{id}.
func (*Client) List ¶
func (c *Client) List(params files_sdk.As2IncomingMessageListParams, opts ...files_sdk.RequestResponseOption) (*Iter, error)
List returns an iterator for GET /as2_incoming_messages. Pages are requested as iteration reaches them: range over Iter.All, or call Next and then check Err.
func (*Client) Replay ¶ added in v3.3.327
func (c *Client) Replay(params files_sdk.As2IncomingMessageReplayParams, opts ...files_sdk.RequestResponseOption) (as2IncomingMessage files_sdk.As2IncomingMessage, err error)
Replay calls POST /as2_incoming_messages/{id}/replay.
API operation: Replay AS2 Incoming Message.
type Iter ¶
Iter traverses a paginated API response. Range over All to get each resource with a nil error, followed by the error that stopped the listing, if any. Alternatively, call Next before reading the current resource, then check Err after Next returns false.
func List ¶
func List(params files_sdk.As2IncomingMessageListParams, opts ...files_sdk.RequestResponseOption) (*Iter, error)
List returns a listing iterator using the default configuration. See Client.List for the operation and paging behavior.
func (*Iter) All ¶ added in v3.3.301
All returns an iterator over the listing's remaining resources, each with a nil error, followed by the error that stops the listing, if any. Pages are requested as the loop reaches them. See files_sdk.IterAll.
func (*Iter) As2IncomingMessage ¶
func (i *Iter) As2IncomingMessage() files_sdk.As2IncomingMessage
As2IncomingMessage returns the current resource. Call it only after Next returns true.
func (*Iter) LoadResource ¶ added in v3.3.328
func (i *Iter) LoadResource(identifier interface{}, opts ...files_sdk.RequestResponseOption) (interface{}, error)
LoadResource fetches a resource by its ID. identifier must have type int64.