Documentation ¶
Index ¶
Constants ¶
View Source
const ( FormatFull = "full" FormatMetadata = "metadata" FormatMinimal = "minimal" FormatRaw = "raw" )
Variables ¶
View Source
var (
MProgress = app_msg.Apply(&MsgProgress{}).(*MsgProgress)
)
Functions ¶
This section is empty.
Types ¶
type Message ¶
type Message interface { Resolve(id string, opts ...ResolveOpt) (message *mo_message.Message, err error) List(q ...QueryOpt) (messages []*mo_message.Message, err error) Update(id string, opts ...UpdateOpt) (message *mo_message.Message, err error) Send(send to_message.Message) (sent *mo_message.Message, err error) }
type MsgProgress ¶
type QueryOpts ¶
type ResolveOpt ¶
type ResolveOpt func(o ResolveOpts) ResolveOpts
func ResolveFormat ¶
func ResolveFormat(format string) ResolveOpt
type ResolveOpts ¶
type ResolveOpts struct {
Format string
}
func (ResolveOpts) Apply ¶
func (z ResolveOpts) Apply(opts ...ResolveOpt) ResolveOpts
type UpdateOpt ¶
type UpdateOpt func(o UpdateOpts) UpdateOpts
func AddLabelIds ¶
func RemoveLabelIds ¶
type UpdateOpts ¶
type UpdateOpts struct { Ids []string `json:"ids,omitempty"` AddLabelIds []string `json:"addLabelIds,omitempty"` RemoveLabelIds []string `json:"removeLabelIds,omitempty"` }
func (UpdateOpts) Apply ¶
func (z UpdateOpts) Apply(opts ...UpdateOpt) UpdateOpts
Click to show internal directories.
Click to hide internal directories.