17 lines
359 B
Gleam
17 lines
359 B
Gleam
import gleam/dynamic.{type Dynamic}
|
|
import gleam/json.{type DecodeError}
|
|
|
|
pub const user_agent = "Apkallone/0.1.0"
|
|
|
|
pub type Client {
|
|
Client(instance: String)
|
|
}
|
|
|
|
pub type Error {
|
|
BadInstance
|
|
FetchError(error: Dynamic)
|
|
UnexpectedStatus(status: Int)
|
|
UnexpectedContentType(content_type: String)
|
|
MissingContentType
|
|
DecodeError(error: DecodeError)
|
|
}
|