16 lines
297 B
Go
16 lines
297 B
Go
package utils
|
|
|
|
import (
|
|
"github.com/sirupsen/logrus"
|
|
"github.com/vingarcia/ksql"
|
|
)
|
|
|
|
// TODO Figure out where this should be
|
|
// This exists so that you don't have to individually pass around the logger and database.
|
|
type ApiService struct {
|
|
db *ksql.DB
|
|
log *logrus.Logger
|
|
}
|
|
|
|
var s *ApiService
|