Documentation ¶
Index ¶
- type Data
- func (d *Data) DataFS() fs.FS
- func (d *Data) DeleteData(ctx context.Context, att *envelope.Attachment) error
- func (d *Data) ForceCreateData(ctx context.Context, att *envelope.Attachment, data []byte) error
- func (d *Data) GetData(ctx context.Context, att *envelope.Attachment) ([]byte, error)
- func (d *Data) GetDataSize(ctx context.Context) (int64, error)
- func (d *Data) Open(name string) (fs.File, error)
- type Endpoint
- type Envelope
- func (e *Envelope) CountAttachment(ctx context.Context) (int, error)
- func (e *Envelope) CountEnvelope(ctx context.Context) (int, error)
- func (e *Envelope) CreateEnvelope(ctx context.Context, msg *envelope.Message, atts []envelope.Attachment) (int64, error)
- func (e *Envelope) DeleteEnvelope(ctx context.Context, msgID int64, fn func(env *envelope.Envelope) error) error
- func (e *Envelope) GetEnvelope(ctx context.Context, msgID int64) (*envelope.Envelope, error)
- func (e *Envelope) ListAttachment(ctx context.Context, offset, limit int, ascending bool) ([]envelope.Attachment, int, error)
- func (e *Envelope) ListEnvelope(ctx context.Context, offset, limit int, ascending bool) ([]envelope.Envelope, int, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Data ¶
type Data struct {
// contains filtered or unexported fields
}
func (*Data) DeleteData ¶
func (*Data) ForceCreateData ¶
type Endpoint ¶
type Endpoint struct {
// contains filtered or unexported fields
}
func NewEndpoint ¶
func NewEndpoint() *Endpoint
func (*Endpoint) GetEndpoint ¶
func (*Endpoint) ListEndpoint ¶
type Envelope ¶
type Envelope struct {
// contains filtered or unexported fields
}
func NewEnvelope ¶
func (*Envelope) CountAttachment ¶
func (*Envelope) CreateEnvelope ¶
func (*Envelope) DeleteEnvelope ¶
func (*Envelope) GetEnvelope ¶
func (*Envelope) ListAttachment ¶
Click to show internal directories.
Click to hide internal directories.