pb

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2018 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Attachment

type Attachment struct {
	Fallback             string   `protobuf:"bytes,1,opt,name=fallback" json:"fallback,omitempty"`
	Color                string   `protobuf:"bytes,2,opt,name=color" json:"color,omitempty"`
	Pretext              string   `protobuf:"bytes,3,opt,name=pretext" json:"pretext,omitempty"`
	AuthorName           string   `protobuf:"bytes,4,opt,name=author_name,json=authorName" json:"author_name,omitempty"`
	AuthorLink           string   `protobuf:"bytes,5,opt,name=author_link,json=authorLink" json:"author_link,omitempty"`
	AuthorIcon           string   `protobuf:"bytes,6,opt,name=author_icon,json=authorIcon" json:"author_icon,omitempty"`
	Title                string   `protobuf:"bytes,7,opt,name=title" json:"title,omitempty"`
	TitleLink            string   `protobuf:"bytes,8,opt,name=title_link,json=titleLink" json:"title_link,omitempty"`
	Text                 string   `protobuf:"bytes,9,opt,name=text" json:"text,omitempty"`
	Fields               []*Field `protobuf:"bytes,10,rep,name=fields" json:"fields,omitempty"`
	ImageUrl             string   `protobuf:"bytes,11,opt,name=image_url,json=imageUrl" json:"image_url,omitempty"`
	ThumbUrl             string   `protobuf:"bytes,12,opt,name=thumb_url,json=thumbUrl" json:"thumb_url,omitempty"`
	Footer               string   `protobuf:"bytes,13,opt,name=footer" json:"footer,omitempty"`
	FooterIcon           string   `protobuf:"bytes,14,opt,name=footer_icon,json=footerIcon" json:"footer_icon,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Attachment) Descriptor

func (*Attachment) Descriptor() ([]byte, []int)

func (*Attachment) GetAuthorIcon

func (m *Attachment) GetAuthorIcon() string
func (m *Attachment) GetAuthorLink() string

func (*Attachment) GetAuthorName

func (m *Attachment) GetAuthorName() string

func (*Attachment) GetColor

func (m *Attachment) GetColor() string

func (*Attachment) GetFallback

func (m *Attachment) GetFallback() string

func (*Attachment) GetFields

func (m *Attachment) GetFields() []*Field

func (*Attachment) GetFooter

func (m *Attachment) GetFooter() string

func (*Attachment) GetFooterIcon

func (m *Attachment) GetFooterIcon() string

func (*Attachment) GetImageUrl

func (m *Attachment) GetImageUrl() string

func (*Attachment) GetPretext

func (m *Attachment) GetPretext() string

func (*Attachment) GetText

func (m *Attachment) GetText() string

func (*Attachment) GetThumbUrl

func (m *Attachment) GetThumbUrl() string

func (*Attachment) GetTitle

func (m *Attachment) GetTitle() string
func (m *Attachment) GetTitleLink() string

func (*Attachment) ProtoMessage

func (*Attachment) ProtoMessage()

func (*Attachment) Reset

func (m *Attachment) Reset()

func (*Attachment) String

func (m *Attachment) String() string

func (*Attachment) XXX_DiscardUnknown

func (m *Attachment) XXX_DiscardUnknown()

func (*Attachment) XXX_Marshal

func (m *Attachment) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Attachment) XXX_Merge

func (dst *Attachment) XXX_Merge(src proto.Message)

func (*Attachment) XXX_Size

func (m *Attachment) XXX_Size() int

func (*Attachment) XXX_Unmarshal

func (m *Attachment) XXX_Unmarshal(b []byte) error

type Field

type Field struct {
	Title                string   `protobuf:"bytes,1,opt,name=title" json:"title,omitempty"`
	Value                string   `protobuf:"bytes,2,opt,name=value" json:"value,omitempty"`
	Short                bool     `protobuf:"varint,3,opt,name=short" json:"short,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Field) Descriptor

func (*Field) Descriptor() ([]byte, []int)

func (*Field) GetShort

func (m *Field) GetShort() bool

func (*Field) GetTitle

func (m *Field) GetTitle() string

func (*Field) GetValue

func (m *Field) GetValue() string

func (*Field) ProtoMessage

func (*Field) ProtoMessage()

func (*Field) Reset

func (m *Field) Reset()

func (*Field) String

func (m *Field) String() string

func (*Field) XXX_DiscardUnknown

func (m *Field) XXX_DiscardUnknown()

func (*Field) XXX_Marshal

func (m *Field) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Field) XXX_Merge

func (dst *Field) XXX_Merge(src proto.Message)

func (*Field) XXX_Size

func (m *Field) XXX_Size() int

func (*Field) XXX_Unmarshal

func (m *Field) XXX_Unmarshal(b []byte) error

type WebhookMsg

type WebhookMsg struct {
	// required
	Text string `protobuf:"bytes,1,opt,name=text" json:"text,omitempty"`
	// if not entered, will be default channel of url
	Channel string `protobuf:"bytes,2,opt,name=channel" json:"channel,omitempty"`
	// if not entered, will be user that created webhook
	Username string `protobuf:"bytes,3,opt,name=username" json:"username,omitempty"`
	// obv not required
	IconUrl string `protobuf:"bytes,4,opt,name=icon_url,json=iconUrl" json:"icon_url,omitempty"`
	// obv not required
	IconEmoji string `protobuf:"bytes,5,opt,name=icon_emoji,json=iconEmoji" json:"icon_emoji,omitempty"`
	// if you wanna get fancy
	Attachments          []*Attachment `protobuf:"bytes,6,rep,name=attachments" json:"attachments,omitempty"`
	XXX_NoUnkeyedLiteral struct{}      `json:"-"`
	XXX_unrecognized     []byte        `json:"-"`
	XXX_sizecache        int32         `json:"-"`
}

func (*WebhookMsg) Descriptor

func (*WebhookMsg) Descriptor() ([]byte, []int)

func (*WebhookMsg) GetAttachments

func (m *WebhookMsg) GetAttachments() []*Attachment

func (*WebhookMsg) GetChannel

func (m *WebhookMsg) GetChannel() string

func (*WebhookMsg) GetIconEmoji

func (m *WebhookMsg) GetIconEmoji() string

func (*WebhookMsg) GetIconUrl

func (m *WebhookMsg) GetIconUrl() string

func (*WebhookMsg) GetText

func (m *WebhookMsg) GetText() string

func (*WebhookMsg) GetUsername

func (m *WebhookMsg) GetUsername() string

func (*WebhookMsg) ProtoMessage

func (*WebhookMsg) ProtoMessage()

func (*WebhookMsg) Reset

func (m *WebhookMsg) Reset()

func (*WebhookMsg) String

func (m *WebhookMsg) String() string

func (*WebhookMsg) XXX_DiscardUnknown

func (m *WebhookMsg) XXX_DiscardUnknown()

func (*WebhookMsg) XXX_Marshal

func (m *WebhookMsg) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*WebhookMsg) XXX_Merge

func (dst *WebhookMsg) XXX_Merge(src proto.Message)

func (*WebhookMsg) XXX_Size

func (m *WebhookMsg) XXX_Size() int

func (*WebhookMsg) XXX_Unmarshal

func (m *WebhookMsg) XXX_Unmarshal(b []byte) error

Jump to

Keyboard shortcuts

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