Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Conn ¶
type Conn interface {
Run(ctx context.Context) error
Close() error
Error() error
Done() <-chan struct{}
Subscribe(ctx context.Context, channels ...exchange.Channel) error
UnSubscribe(ctx context.Context, channels ...exchange.Channel) error
}
Conn Unique exchange websocket client
type Gen ¶
type Gen interface {
NewConn(ctx context.Context) (Conn, error)
//Channel return channels which need to be subscribe.
Channels(ctx context.Context, oldChannel []exchange.Channel) (newChannels []exchange.Channel, notify chan struct{}, err error)
}
Gen is a interface for unify rpc connection and update subscription channel
Click to show internal directories.
Click to hide internal directories.