Documentation
¶
Index ¶
- Variables
- func GetAceCode(language string) string
- func GetCode(language string) string
- func GetSlackFileType(language string) string
- func NewMailer(email *Email)
- func SetLocation(loc *time.Location)
- type Email
- type Language
- type Mailer
- type Model
- type ShareInfo
- type Slack
- type SnippetInfo
- type Snippets
- type User
Constants ¶
This section is empty.
Variables ¶
View Source
var Languages = []*Language{ &Language{"c", "c_cpp", "c", "C"}, &Language{"css", "css", "css", "CSS"}, &Language{"go", "golang", "go", "Go"}, &Language{"html", "html", "html", "HTML"}, &Language{"javascript", "javascript", "javascript", "Javascript"}, &Language{"javascript", "json", "javascript", "JSON"}, }
Languages contain array of languages
Functions ¶
func GetAceCode ¶
func GetSlackFileType ¶
func SetLocation ¶
Types ¶
type Email ¶
type Email struct { Server string Port string Address string Password string SenderName string SenderEmail string Enabled bool }
func NewEmailSettings ¶
NewEmailSettings creates new email
type Mailer ¶
type Mailer struct { Sender mail.Address Receiver mail.Address Server string PortNumber int Auth smtp.Auth Data *SnippetInfo }
var SmtpMailer Mailer
func (*Mailer) MakeHeader ¶
func (*Mailer) ServerName ¶
type SnippetInfo ¶
type SnippetInfo struct { Owner string Key string Time string Title string Language string Code string References string CreatedAt int64 ModifiedAt int64 DeletedAt int64 }
SnippetInfo contains information about snippets stored
func NewSnippet ¶
func NewSnippet(owner, title, language, code, references string, sharedBySomeone bool, sharedBy string, sharedToSomeone bool, sharedTo []*ShareInfo) *SnippetInfo
NewSnippet creates new snippet
func (*SnippetInfo) BucketName ¶
func (s *SnippetInfo) BucketName() string
func (*SnippetInfo) ID ¶
func (s *SnippetInfo) ID() string
func (*SnippetInfo) Value ¶
func (s *SnippetInfo) Value() interface{}
Click to show internal directories.
Click to hide internal directories.