Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitBotNameRegex ¶ added in v1.10.0
func InitBotNameRegex() (e error)
InitBotNameRegex initializes the regex for bot names.
Types ¶
type APIServer ¶
type APIServer struct {
// contains filtered or unexported fields
}
APIServer is an instance of the API service
func MakeAPIServer ¶
func MakeAPIServer( kos *kelpos.KelpOS, botConfigsPath *kelpos.OSPath, botLogsPath *kelpos.OSPath, horizonTestnetURI string, apiTestNet *horizonclient.Client, horizonPubnetURI string, apiPubNet *horizonclient.Client, ccxtRestUrl string, noHeaders bool, quitFn func(), ) (*APIServer, error)
MakeAPIServer is a factory method
type ErrorResponse ¶ added in v1.8.0
type ErrorResponse struct {
Error string `json:"error"`
}
ErrorResponse represents an error (deprecated)
type KelpError ¶ added in v1.10.0
type KelpError struct { ObjectType errorType `json:"object_type"` ObjectName string `json:"object_name"` Date time.Time `json:"date"` Level errorLevel `json:"level"` Message string `json:"message"` }
KelpError represents an error
type KelpErrorResponseWrapper ¶ added in v1.10.0
type KelpErrorResponseWrapper struct {
KelpError KelpError `json:"kelp_error"`
}
KelpErrorResponseWrapper is the outer object that contains the Kelp Error
func (*KelpErrorResponseWrapper) String ¶ added in v1.10.0
func (kerw *KelpErrorResponseWrapper) String() string
String is the Stringer method
Source Files ¶
- api_server.go
- autogenerate_bot.go
- delete_bot.go
- error_constants.go
- fetch_price.go
- generate_bot_name.go
- get_bot_config.go
- get_bot_info.go
- get_bot_state.go
- get_new_bot_config.go
- list_bots.go
- new_secret_key.go
- options_metadata.go
- ping.go
- quit.go
- routes.go
- start_bot.go
- stop_bot.go
- upsert_bot_config.go
- version.go
Click to show internal directories.
Click to hide internal directories.