Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Application ¶
type Application struct { RootPath string Port string DataStore dataStore KeyGenerator keyGenerator GridHandler http.Handler }
func NewApplication ¶
func NewApplication(config Config) (*Application, error)
func (*Application) Boot ¶
func (a *Application) Boot() error
type GridData ¶
type GridData []GridElement
type GridElement ¶
type GridHandler ¶
type GridHandler struct { GridHTML []byte DataStore dataStore KeyGenerator keyGenerator }
func (GridHandler) CloneHandler ¶
func (g GridHandler) CloneHandler(w http.ResponseWriter, req *http.Request)
func (GridHandler) DataHandler ¶
func (g GridHandler) DataHandler(w http.ResponseWriter, req *http.Request)
func (GridHandler) ServeHTTP ¶
func (g GridHandler) ServeHTTP(w http.ResponseWriter, req *http.Request)
type KeyGenerator ¶
type KeyGenerator struct {
DataStore dataStore
}
func (KeyGenerator) New ¶
func (g KeyGenerator) New() (string, error)
type MemoryDataStore ¶
type MemoryDataStore struct {
// contains filtered or unexported fields
}
func NewMemoryDataStore ¶
func NewMemoryDataStore() *MemoryDataStore
type RedisDataStore ¶
type RedisDataStore struct { Host string Password string // contains filtered or unexported fields }
func (*RedisDataStore) Initialize ¶
func (s *RedisDataStore) Initialize() error
Click to show internal directories.
Click to hide internal directories.