Documentation ¶
Index ¶
- Constants
- type NotificationPref
- type Ombi
- func (ombi *Ombi) DeleteUser(id string) (err error)
- func (ombi *Ombi) GetUsers() ([]map[string]interface{}, error)
- func (ombi *Ombi) ModifyUser(user map[string]interface{}) (err error)
- func (ombi *Ombi) NewUser(username, password, email string, template map[string]interface{}) ([]string, error)
- func (ombi *Ombi) SetNotificationPrefs(user map[string]interface{}, discordID, telegramUser string) (result string, err error)
- func (ombi *Ombi) SetTransport(t *http.Transport)
- func (ombi *Ombi) TemplateByID(id string) (result map[string]interface{}, err error)
- func (ombi *Ombi) UserByID(id string) (result map[string]interface{}, err error)
Constants ¶
View Source
const ( NotifAgentDiscord = 1 NotifAgentTelegram = 4 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type NotificationPref ¶
type Ombi ¶
type Ombi struct {
// contains filtered or unexported fields
}
Ombi represents a running Ombi instance.
func NewOmbi ¶
func NewOmbi(server, key string, timeoutHandler co.TimeoutHandler) *Ombi
NewOmbi returns an Ombi object.
func (*Ombi) DeleteUser ¶
DeleteUser deletes the user corresponding to the given ID.
func (*Ombi) ModifyUser ¶
ModifyUser applies the given modified user object to the corresponding user.
func (*Ombi) NewUser ¶
func (ombi *Ombi) NewUser(username, password, email string, template map[string]interface{}) ([]string, error)
NewUser creates a new user with the given username, password and email address.
func (*Ombi) SetNotificationPrefs ¶
func (*Ombi) SetTransport ¶
SetTransport sets the http.Transport to use for requests. Can be used to set a proxy.
func (*Ombi) TemplateByID ¶
TemplateByID returns a template based on the user corresponding to the provided ID's settings.
Click to show internal directories.
Click to hide internal directories.