entity

package
v0.0.0-...-72e8f9a Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 6, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AlertMsg

type AlertMsg struct {
	// contains filtered or unexported fields
}

func NewAlertMsg

func NewAlertMsg(err error) *AlertMsg

func (*AlertMsg) Summary

func (a *AlertMsg) Summary() string

type Label

type Label struct {
	ID   string
	Name string
}

func NewLabelFromGmailLabel

func NewLabelFromGmailLabel(l *gmail.Label) *Label

type Message

type Message interface {
	Body() string
	IsInternshipRequest() bool
	Link() string

	MessageForLabeler
}

type MessageForLabeler

type MessageForLabeler interface {
	ID() string
	Label() string
}

type MessageWithError

type MessageWithError struct {
	Msg Message
	Err error
}

type Msg

type Msg struct {
	// contains filtered or unexported fields
}

func NewMsg

func NewMsg(
	id, label, body string,
	isInternshipRequest bool,
) *Msg

func NewMsgFromGmailMessage

func NewMsgFromGmailMessage(msg *gmail.Message) (*Msg, error)

func (*Msg) Body

func (m *Msg) Body() string

func (*Msg) Copy

func (m *Msg) Copy() *Msg

func (*Msg) ID

func (m *Msg) ID() string

func (*Msg) IsInternshipRequest

func (m *Msg) IsInternshipRequest() bool

func (*Msg) Label

func (m *Msg) Label() string
func (m *Msg) Link() string

func (*Msg) WithIsIntern

func (m *Msg) WithIsIntern(v bool) *Msg

func (*Msg) WithLabel

func (m *Msg) WithLabel(v string) *Msg

type SummaryMessage

type SummaryMessage interface {
	Summary() string
}

type SummaryMsg

type SummaryMsg struct {
	Message
	// contains filtered or unexported fields
}

func NewSummaryMsg

func NewSummaryMsg(msg Message, summary string) *SummaryMsg

func (*SummaryMsg) Summary

func (s *SummaryMsg) Summary() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL