Documentation ¶
Index ¶
Constants ¶
const ( // KOSPI market KOSPI = "kospi" // KOSDAQ market KOSDAQ = "kosdaq" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Invitation ¶
Invitation is a struct for describing invitation
func NewInvitation ¶
func NewInvitation(guestname string, publicKey *rsa.PublicKey) Invitation
NewInvitation returns a new Invitation struct
func (Invitation) GetDBRegisterForm ¶
func (iv Invitation) GetDBRegisterForm() database.DBRegisterForm
GetDBRegisterForm is just an implementation
func (Invitation) GetPublicKey ¶
func (iv Invitation) GetPublicKey() rsa.PublicKey
GetPublicKey provides a convenience to parse jsonified rsa.PublicKey struct
type Stock ¶
Stock is a struct describing each stock item
func (Stock) GetDBRegisterForm ¶
func (s Stock) GetDBRegisterForm() database.DBRegisterForm
GetDBRegisterForm is just an implementation
type StockPrice ¶
type StockPrice struct { StockID string Timestamp int64 Open int Close int High int Low int Volume float64 }
StockPrice is a struct describing price of the stock
func (StockPrice) GetDBRegisterForm ¶
func (s StockPrice) GetDBRegisterForm() database.DBRegisterForm
GetDBRegisterForm is just an implementation
type User ¶
User is a struct for describing users
func UserFromID ¶
UserFromID finds user by user ID
func (User) GetDBRegisterForm ¶
func (s User) GetDBRegisterForm() database.DBRegisterForm
GetDBRegisterForm is just an implementation
type UserStock ¶
type UserStock struct { UserID int64 StockID string Strategy string OrderSide int Repeat bool `db:"RepeatStrategy"` }
UserStock is a struct describing the users' stock strategy
func AllStrategies ¶
AllStrategies returns all strategies
func (UserStock) GetDBRegisterForm ¶
func (s UserStock) GetDBRegisterForm() database.DBRegisterForm
GetDBRegisterForm is just an implementation
type WatchingStock ¶
WatchingStock is a struct for describing if the stock item is being watched or not.
func (WatchingStock) GetDBRegisterForm ¶
func (s WatchingStock) GetDBRegisterForm() database.DBRegisterForm
GetDBRegisterForm is just an implementation