Documentation ¶
Index ¶
Constants ¶
View Source
const API = "https://api.imgur.com/3/image"
Variables ¶
View Source
var AppSchema = schema.StructFunc(func(prototype *App) *schema.StructBuilder[App] { return schema.Struct(prototype, schema.F("clientId", &prototype.ClientId, schema.String()), ).DebugName("App") })
View Source
var ApplierSchema = schema.StructFunc(func(prototype *Applier) *schema.StructBuilder[Applier] { return schema.Struct(prototype, schema.F("App", &prototype.App, AppSchema), ).DebugName("upload.imgur#Applier") })
View Source
var ConfigSchema = schema.StructFunc(func(prototype *Config) *schema.StructBuilder[Config] { return schema.Struct(prototype, schema.F("apps", &prototype.Apps, schema.Map(AppSchema)), schema.F("default", &prototype.Default, schema.String().Default("")), ).DebugName("upload.imgur#Config") })
View Source
var ParamsSchema = schema.StructFunc(func(prototype *Params) *schema.StructBuilder[Params] { return schema.Struct(prototype, schema.F("app", &prototype.AppName, schema.String().Default("")), ).DebugName("upload.imgur#Params") })
Functions ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.