Documentation
¶
Index ¶
- Constants
- Variables
- func GetAcceptInvalidCert() bool
- func GetAutoReJoin() bool
- func GetAutoReconnect() bool
- func GetBotName() string
- func GetCertFile() string
- func GetChannel() string
- func GetChannelPassword() string
- func GetDataPath() string
- func GetDbFile() string
- func GetKeyFile() string
- func GetLogFile() string
- func GetServerAddress() string
- func GetServerPassword() string
- func GetServerPort() int
- func GetUseSsl() bool
- func GetWebPassword() string
- func GetWebPort() int
- func GetYoutubeApiKey() string
- func InitConf(configFile string)
- func InitImageAction()
- func StartsWith(a string, list []string) bool
- type DBLink
- type DBRaw
- type DBStatDuplicate
- type DBStatGroupLink
- type DBStatGroupUser
- type DBUser
- type Handler
- type IrcDatabase
- func (i *IrcDatabase) AddLink(link, linkType, username string) *DBLink
- func (i *IrcDatabase) AddRaw(dataType string, link *DBLink, mime_type string) int64
- func (i *IrcDatabase) GetAll(limit int, offset int, link_types []string) *[]DBLink
- func (i *IrcDatabase) GetCount(link_types []string) int
- func (i *IrcDatabase) GetCreateUser(userName string) *DBUser
- func (i *IrcDatabase) GetDatabaseVersion() int
- func (i *IrcDatabase) GetDuplicateStat() *[]DBStatDuplicate
- func (i *IrcDatabase) GetLink(url string) *DBLink
- func (i *IrcDatabase) GetLinkById(id int64) *DBLink
- func (i *IrcDatabase) GetLinkGroupStat() *[]DBStatGroupLink
- func (i *IrcDatabase) GetRaw(linkId int64, rawType string) (*DBRaw, error)
- func (i *IrcDatabase) GetUserStat() *[]DBStatGroupUser
- func (i *IrcDatabase) GetYoutubeLink(id string) *DBLink
- func (i *IrcDatabase) LogDuplicate(link *DBLink, sender string)
- func (i *IrcDatabase) Open() *sql.DB
- func (i *IrcDatabase) RemoveLink(link *DBLink)
Constants ¶
View Source
const ( Duplicate = "Duplicate" RawImage = "image" RawImageThumbnail = "thumb" RawWebm = "webm" RawWebmFrame = "webm1" RawGif = "gif" )
Those strings are used in database type fields
View Source
const ( Image = "image" Link = "link" Youtube = "youtube" WebM = "webm" Gif = "gif" )
Variables ¶
View Source
var ImageAction *imageAction
ImageAction - Instance of imageAction struct
View Source
var Images = []string{".jpg", ".png", ".jpeg"}
Functions ¶
func GetAcceptInvalidCert ¶
func GetAcceptInvalidCert() bool
func GetAutoReJoin ¶
func GetAutoReJoin() bool
func GetAutoReconnect ¶
func GetAutoReconnect() bool
func GetBotName ¶
func GetBotName() string
func GetCertFile ¶
func GetCertFile() string
func GetChannel ¶
func GetChannel() string
func GetChannelPassword ¶
func GetChannelPassword() string
func GetDataPath ¶
func GetDataPath() string
func GetKeyFile ¶
func GetKeyFile() string
func GetLogFile ¶
func GetLogFile() string
func GetServerAddress ¶
func GetServerAddress() string
func GetServerPassword ¶
func GetServerPassword() string
func GetServerPort ¶
func GetServerPort() int
func GetWebPassword ¶
func GetWebPassword() string
func GetWebPort ¶
func GetWebPort() int
func GetYoutubeApiKey ¶
func GetYoutubeApiKey() string
func InitImageAction ¶
func InitImageAction()
func StartsWith ¶
Types ¶
type DBLink ¶
type DBLink struct { Key sql.NullInt64 Link sql.NullString Sender_id sql.NullInt64 Date time.Time Link_type sql.NullString Sender_name sql.NullString }
type DBRaw ¶
type DBRaw struct { Mime_type sql.NullString Link_id sql.NullInt64 Data_type sql.NullString }
type DBStatDuplicate ¶
type DBStatGroupLink ¶
type DBStatGroupUser ¶
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
func (*Handler) GoogleSearch ¶
type IrcDatabase ¶
type IrcDatabase struct {
// contains filtered or unexported fields
}
func (*IrcDatabase) AddLink ¶
func (i *IrcDatabase) AddLink(link, linkType, username string) *DBLink
func (*IrcDatabase) AddRaw ¶
func (i *IrcDatabase) AddRaw(dataType string, link *DBLink, mime_type string) int64
func (*IrcDatabase) GetAll ¶
func (i *IrcDatabase) GetAll(limit int, offset int, link_types []string) *[]DBLink
func (*IrcDatabase) GetCount ¶
func (i *IrcDatabase) GetCount(link_types []string) int
func (*IrcDatabase) GetCreateUser ¶
func (i *IrcDatabase) GetCreateUser(userName string) *DBUser
func (*IrcDatabase) GetDatabaseVersion ¶
func (i *IrcDatabase) GetDatabaseVersion() int
func (*IrcDatabase) GetDuplicateStat ¶
func (i *IrcDatabase) GetDuplicateStat() *[]DBStatDuplicate
func (*IrcDatabase) GetLink ¶
func (i *IrcDatabase) GetLink(url string) *DBLink
func (*IrcDatabase) GetLinkById ¶
func (i *IrcDatabase) GetLinkById(id int64) *DBLink
func (*IrcDatabase) GetLinkGroupStat ¶
func (i *IrcDatabase) GetLinkGroupStat() *[]DBStatGroupLink
func (*IrcDatabase) GetRaw ¶
func (i *IrcDatabase) GetRaw(linkId int64, rawType string) (*DBRaw, error)
func (*IrcDatabase) GetUserStat ¶
func (i *IrcDatabase) GetUserStat() *[]DBStatGroupUser
func (*IrcDatabase) GetYoutubeLink ¶
func (i *IrcDatabase) GetYoutubeLink(id string) *DBLink
func (*IrcDatabase) LogDuplicate ¶
func (i *IrcDatabase) LogDuplicate(link *DBLink, sender string)
func (*IrcDatabase) Open ¶
func (i *IrcDatabase) Open() *sql.DB
func (*IrcDatabase) RemoveLink ¶
func (i *IrcDatabase) RemoveLink(link *DBLink)
Click to show internal directories.
Click to hide internal directories.