21 lines
346 B
Go
21 lines
346 B
Go
package client
|
|
|
|
const (
|
|
HeaderContentType = "Content-Type"
|
|
MIMEApplicationForm = "application/x-www-form-urlencoded"
|
|
)
|
|
|
|
type ApiClient struct {
|
|
Auth Auth
|
|
Demo DemoApiClient
|
|
|
|
ServerAddress string
|
|
}
|
|
|
|
func New(serverAddress string) ApiClient {
|
|
return ApiClient{
|
|
Auth: newAuthClient(serverAddress),
|
|
Demo: newDemoClient(serverAddress),
|
|
}
|
|
}
|