Documentation ¶
Index ¶
- Variables
- func AddNode(newNode model.Node) (model.Node, error)
- func AddPost(newPost model.Post) error
- func AddUser(newUser model.User) (model.User, error)
- func GetNodeExists(nodeName string) (bool, error)
- func GetUserByName(userName string) (model.User, error)
- func GetUserExists(userName string) (bool, error)
- type ParsedStamp
- type ParsedStampPrice
- type ParsedStampVolume
- type Stamp
- type Subscription
- type User
Constants ¶
This section is empty.
Variables ¶
View Source
var DB *pgxpool.Pool
View Source
var SQ sq.StatementBuilderType
Functions ¶
func GetNodeExists ¶
func GetUserExists ¶
Types ¶
type ParsedStamp ¶
type ParsedStamp struct { Symbol string `json:"symbol"` PriceChange ParsedStampPrice `json:"regularMarketPrice"` PriceChangePercent ParsedStampPrice `json:"regularMarketChangePercent"` Timestamp int `json:"timestamp"` }
type ParsedStampPrice ¶
type ParsedStampPrice struct {
Raw float32 `json:"raw"`
}
type ParsedStampVolume ¶
type ParsedStampVolume struct {
Raw float32 `json:"raw"`
}
type Subscription ¶
Click to show internal directories.
Click to hide internal directories.