Documentation
¶
Index ¶
Constants ¶
const ( //HostURL if you are using the European server. HostURL = `https://smartcat.ai` //USHostURL if you are using the American server. USHostURL = `https://us.smartcat.ai` //EAHostURL if you are using the Asian server. EAHostURL = `https://ea.smartcat.ai` )
Variables ¶
var (
ErrUnknown = errors.New("unknown error")
)
Functions ¶
This section is empty.
Types ¶
type Account ¶
type Account struct {
ID string `json:"id"`
Name string `json:"name"`
IsPersonal bool `json:"isPersonal"`
Type string `json:"type"`
}
func (Account) MarshalEasyJSON ¶
MarshalEasyJSON supports easyjson.Marshaler interface
func (Account) MarshalJSON ¶
MarshalJSON supports json.Marshaler interface
func (*Account) UnmarshalEasyJSON ¶
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*Account) UnmarshalJSON ¶
UnmarshalJSON supports json.Unmarshaler interface
type AccountMTEngine ¶
func (AccountMTEngine) MarshalEasyJSON ¶
func (v AccountMTEngine) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (AccountMTEngine) MarshalJSON ¶
func (v AccountMTEngine) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*AccountMTEngine) UnmarshalEasyJSON ¶
func (v *AccountMTEngine) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*AccountMTEngine) UnmarshalJSON ¶
func (v *AccountMTEngine) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type AccountMTEngines ¶
type AccountMTEngines []AccountMTEngine
func (AccountMTEngines) MarshalEasyJSON ¶
func (v AccountMTEngines) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (AccountMTEngines) MarshalJSON ¶
func (v AccountMTEngines) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*AccountMTEngines) UnmarshalEasyJSON ¶
func (v *AccountMTEngines) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*AccountMTEngines) UnmarshalJSON ¶
func (v *AccountMTEngines) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func NewCustomClient ¶
NewClient init client
func (*Client) AccountMTEngines ¶
func (v *Client) AccountMTEngines() (o AccountMTEngines, err error)
AccountMtengines Receiving MT engines available for the account
type ErrorResponse ¶
type ErrorResponse struct {
Message string `json:"Message"`
}
ErrorResponse ...
func (ErrorResponse) Error ¶
func (v ErrorResponse) Error() string
func (ErrorResponse) MarshalEasyJSON ¶
func (v ErrorResponse) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (ErrorResponse) MarshalJSON ¶
func (v ErrorResponse) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*ErrorResponse) UnmarshalEasyJSON ¶
func (v *ErrorResponse) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*ErrorResponse) UnmarshalJSON ¶
func (v *ErrorResponse) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface