Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LoadIdsFromDb ¶
func StartServer ¶
func StartServer(params ServerParameters)
Types ¶
type DbLogger ¶
type DbLogger struct { IdsCache *TerminalIdsCache // contains filtered or unexported fields }
func NewDbLogger ¶
func (DbLogger) AddNewEntry ¶
func (handler DbLogger) AddNewEntry(res http.ResponseWriter, req *http.Request)
type IdLister ¶
type IdLister struct {
// contains filtered or unexported fields
}
func NewIdLister ¶
func NewIdLister(cache *TerminalIdsCache) IdLister
type ServerParameters ¶
type TerminalIdsCache ¶
type TerminalIdsCache struct {
// contains filtered or unexported fields
}
func NewTerminalIdsCache ¶
func NewTerminalIdsCache() TerminalIdsCache
func (*TerminalIdsCache) AppendId ¶
func (cache *TerminalIdsCache) AppendId(id uint64)
func (*TerminalIdsCache) AppendIds ¶
func (cache *TerminalIdsCache) AppendIds(ids []uint64)
func (*TerminalIdsCache) GetIds ¶
func (cache *TerminalIdsCache) GetIds() []uint64
type Uint64Slice ¶
type Uint64Slice []uint64
func (Uint64Slice) Len ¶
func (s Uint64Slice) Len() int
func (Uint64Slice) Less ¶
func (s Uint64Slice) Less(i, j int) bool
func (Uint64Slice) Swap ¶
func (s Uint64Slice) Swap(i, j int)
Click to show internal directories.
Click to hide internal directories.