types

package
v0.0.0-...-0a93553 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 8, 2022 License: BSD-2-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NumberStr

type NumberStr string

func (NumberStr) MarshalJSON

func (t NumberStr) MarshalJSON() ([]byte, error)

type RedisKey

type RedisKey key
const (
	//消息推送队列
	WsMessage RedisKey = "message"
	//新订单通知到撮合系统的队列
	NewOrder RedisKey = "order.new.{symbol}"
	//结算成功推送
	TradeResult RedisKey = "trade.result.{symbol}"
	//推送到行情系统的队列
	MarketSubscribe RedisKey = "trade.result"
)

func (RedisKey) Format

func (r RedisKey) Format(kvs map[string]string) string

func (RedisKey) String

func (r RedisKey) String() string

type Subscribe

type Subscribe string
const (
	SubscribeUserId Subscribe = "user.{user_id}"

	SubscribeDepth       Subscribe = "depth.{symbol}"
	SubscribeTradeRecord Subscribe = "trade.record.{symbol}"

	SubscribeKline Subscribe = "kline.{period}.{symbol}"
)

func (Subscribe) Format

func (r Subscribe) Format(kvs map[string]string) string

type Time

type Time time.Time

func (Time) MarshalJSON

func (t Time) MarshalJSON() ([]byte, error)

func (Time) Unix

func (t Time) Unix() int64

func (*Time) UnmarshalJSON

func (t *Time) UnmarshalJSON(data []byte) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL