Documentation
¶
Index ¶
- func API(cfg *config.Config, db *db.DB, es *elastic.Client, ...) http.Handler
- func Broadcast(stream proto.Twitter_StreamClient, m *melody.Melody)
- func ResponseError(c *gin.Context, s int, e string)
- func ResponseJSON(c *gin.Context, d interface{})
- type Annotations
- type Metrics
- type Response
- type Users
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func API ¶
func API(cfg *config.Config, db *db.DB, es *elastic.Client, authenticator *auth.Authenticator, mail *mailer.Mailer, streamer *redis.Service) http.Handler
API : Returns an new API
func Broadcast ¶
func Broadcast(stream proto.Twitter_StreamClient, m *melody.Melody)
Broadcast Receives Messages from the Streaming Service and Broadcasts back to websocket
Types ¶
type Annotations ¶
type Annotations struct {
// contains filtered or unexported fields
}
Annotations Controller
func (*Annotations) GetRandom ¶
func (ctrl *Annotations) GetRandom(c *gin.Context)
GetRandom Gets a random document from ES
type Metrics ¶
type Metrics struct {
// contains filtered or unexported fields
}
Metrics Controller
func (*Metrics) GetVolumeByUser ¶
GetVolumeByUser ...
type Response ¶
type Response struct { Success bool `json:"success"` Error string `json:"error,omitempty"` Data interface{} `json:"data,omitempty"` Code int `json:"code"` }
Response : JSON Response Object
type Users ¶
type Users struct {
// contains filtered or unexported fields
}
Users Controller
func (*Users) OAuthTwitter ¶
OAuthTwitter Atuhorizes Twitter using gothic
func (*Users) OAuthTwitterCB ¶
OAuthTwitterCB Twitter Authorization Callback using gothic
Click to show internal directories.
Click to hide internal directories.