Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthTokenRequest ¶
type AuthTokenRequest struct {
Broker string `json:"broker"`
Credentials broker.Credentials `json:"credentials"`
Sandbox bool `json:"sandbox"`
}
AuthTokenRequest represents an auth token request
type BrokerWithExtras ¶
BrokerWithExtras is a test-oriented interface for server handlers.
type Response ¶
type Response struct {
OK bool `json:"ok"`
Data interface{} `json:"data,omitempty"`
Error string `json:"error,omitempty"`
Broker string `json:"broker,omitempty"`
}
Response represents a standard API response
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server represents the HTTP server
func New ¶
New creates a new server instance. This constructor wires built-in brokers from config (currently KIS, Kiwoom).
func NewWithBrokers ¶
func NewWithBrokers(host string, port int, accounts []config.AccountConfig, brokers map[string]broker.Broker) *Server
NewWithBrokers creates a server with externally provided brokers. This constructor is used by the public pkg/server package for OSS extensibility.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.