Documentation
¶
Index ¶
- Variables
- func NewClient(endpointURL string, httpClient *http.Client, rateLimit *rate.Limiter) client
- func StreamXML(qw422016 *qt422016.Writer, s any)
- func WriteXML(qq422016 qtio422016.Writer, s any)
- func XML(s any) string
- type Decrypter
- type ExtractXmlBomaMsgResponse
- type MsgHeader
- type ReadDeleteNamer
- type ReceiveRootMsgResponse
- type Receiver
- type SendReceiver
- type SendXmlBomaMsgResponse
- type Sender
- type Vault
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func WriteXML ¶
func WriteXML(qq422016 qtio422016.Writer, s any)
Types ¶
type ExtractXmlBomaMsgResponse ¶
type ExtractXmlBomaMsgResponse struct {
Data []byte `xml:"msgData"`
}
type MsgHeader ¶
type MsgHeader struct {
Type string `xml:"msgTypeName"`
Sender string `xml:"senderInsCo"`
Target string `xml:"targetInsCo"`
MsgID string `xml:"messageId"`
RefID string `xml:"referenceId"`
Reason string `xml:"reasonOfRequest"`
Result string `xml:"resultCode"`
DateTime string `xml:"messageDateTime"`
ReqID string `xml:"requestersId"`
Key string `xml:"encryptedKey"`
Responded string `xml:"-"`
}
type ReadDeleteNamer ¶
type ReadDeleteNamer interface {
io.ReadCloser
Delete() error
Name() string
}
type ReceiveRootMsgResponse ¶
type SendReceiver ¶
type SendXmlBomaMsgResponse ¶
type Vault ¶
Vault is a safe file storage for in-flight (in-process) messages.
func NewVault ¶
NewVault prepares a vault under the given path.
Files in writing are under $path/tmp, removed files move under $path/done, all the current content is under $path.
func (*Vault) Get ¶
func (v *Vault) Get() (ReadDeleteNamer, error)
Get the next (first) file from the vault.
func (*Vault) NewWriter ¶
NewWriter returns a new Writer with the preallocated size, named with an ULID under the tmp dir.