Documentation ¶
Index ¶
Constants ¶
View Source
const (
PluginName = "/api/v1/feeds"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CreateRequest ¶
type CreateRequest struct { Languages []string `json:"languages,omitempty" validate:"required,min=1,dive,bcp47_language_tag"` Host string `json:"host,omitempty" validate:"omitempty,max=254"` Title string `json:"title,omitempty" validate:"required,max=254"` Link string `json:"link,omitempty" validate:"required,url"` Enabled bool `json:"enabled,omitempty"` }
type Plugin ¶
type Plugin struct {
// contains filtered or unexported fields
}
func (*Plugin) Init ¶
func (p *Plugin) Init(s storage.FeedStorage, sender tgbotsender.TelegramSender) error
type UpdateRequest ¶
type UpdateRequest struct { Languages []string `json:"languages,omitempty" validate:"omitempty,dive,bcp47_language_tag"` Host string `json:"host,omitempty" validate:"omitempty,max=254"` Title string `json:"title,omitempty" validate:"omitempty,max=254"` Link string `json:"link,omitempty" validate:"omitempty,url"` Enabled *bool `json:"enabled,omitempty"` }
Click to show internal directories.
Click to hide internal directories.