Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewFileTokenManager ¶
func NewFileTokenManager() tokencache.Manager
NewFileTokenManager creates a file-backed LS token manager.
func NewFileTokenManagerWithDir ¶
func NewFileTokenManagerWithDir(dir string) tokencache.Manager
NewFileTokenManagerWithDir creates a file-backed LS token manager with a fixed directory.
func OverseasRealtimeKey ¶
OverseasRealtimeKey returns the fixed-width realtime key used by LS GSC/GSH.
Types ¶
type Adapter ¶
type Adapter interface {
adapter.Adapter
CallEndpoint(ctx context.Context, method, path, trCD string, request interface{}) (interface{}, error)
ConnectRealtime(ctx context.Context) (*RealtimeConn, error)
BuildTradeSubscriptions(ctx context.Context) ([]RealtimeSubscription, error)
BuildOverseasTradeSubscriptions(ctx context.Context, market string, maxRows int) ([]RealtimeSubscription, error)
}
Adapter is the public LS adapter contract.
type RealtimeConn ¶
type RealtimeConn = internal.RealtimeConn
type RealtimeMessage ¶
type RealtimeMessage = internal.RealtimeMessage
type RealtimeSubscription ¶
type RealtimeSubscription = internal.RealtimeSubscription
Click to show internal directories.
Click to hide internal directories.