Documentation ¶
Index ¶
Constants ¶
View Source
const ( KeySize = 16 KeyHashSize = 32 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Key ¶
func GenerateKey ¶
func (Key) MarshalText ¶
MarshalText implements the encoding.TextMarshaler interface.
func (*Key) UnmarshalText ¶
UnmarshalText implements the encoding.TextUnmarshaler interface.
type KeyHash ¶
type KeyHash [KeyHashSize]byte
func ParseKeyHash ¶
func (KeyHash) MarshalText ¶
MarshalText implements the encoding.TextMarshaler interface.
func (*KeyHash) UnmarshalText ¶
UnmarshalText implements the encoding.TextUnmarshaler interface.
type Response ¶
type Response struct { Success bool `json:"success"` Error string `json:"error"` Content json.RawMessage `json:"content"` }
Response represents the base API response structure.
type UploadResponse ¶
type UploadResponse struct {
Filename string `json:"filename"`
}
UploadResponse represents the structure of an upload response.
Click to show internal directories.
Click to hide internal directories.