Versions in this module Expand all Collapse all v0 v0.1.0 Aug 14, 2025 Changes in this version + type Envelope struct + Data any + Pagination any + Status EnvelopeStatus + func NewEnvelope(data ...any) Envelope + func (envelope Envelope) WithEndpointId(val int) Envelope + func (envelope Envelope) WithError(e EnvelopeError) Envelope + func (envelope Envelope) WithNewEnvelopePagination(search string, start, count, total int64) Envelope + func (envelope Envelope) WithNewError(status int, e error, ctx ...flam.Bag) Envelope + func (envelope Envelope) WithPagination(pagination any) Envelope + func (envelope Envelope) WithServiceId(val int) Envelope + type EnvelopeError struct + Context flam.Bag + Id string + Status int + func NewEnvelopeError(status int, e error, ctx ...flam.Bag) EnvelopeError + func (envelopeError EnvelopeError) WithContext(key string, value any) EnvelopeError + func (envelopeError EnvelopeError) WithEndpointId(val int) EnvelopeError + func (envelopeError EnvelopeError) WithErrorId(id any) EnvelopeError + func (envelopeError EnvelopeError) WithParamId(param int) EnvelopeError + func (envelopeError EnvelopeError) WithServiceId(val int) EnvelopeError + func (envelopeError EnvelopeError) WithStatus(val int) EnvelopeError + type EnvelopePagination struct + Count int64 + Next string + Prev string + Search string + Start int64 + Total int64 + func NewEnvelopePagination(search string, start, count, total int64) EnvelopePagination + type EnvelopeStatus struct + Errors []EnvelopeError + Status int + Success bool + type ProblemEnvelope struct + func NewProblemEnvelope(status int, typeURI, title, details, instance string, ctx ...flam.Bag) ProblemEnvelope + func NewProblemEnvelopeFrom(envelope Envelope) ProblemEnvelope + func (problem ProblemEnvelope) Get(key string) any + func (problem ProblemEnvelope) GetDetail() string + func (problem ProblemEnvelope) GetId() string + func (problem ProblemEnvelope) GetInstance() string + func (problem ProblemEnvelope) GetStatus() int + func (problem ProblemEnvelope) GetTitle() string + func (problem ProblemEnvelope) GetType() string + func (problem ProblemEnvelope) With(key string, value any) ProblemEnvelope