mitremeerkat

package
v0.0.0-...-54e02f6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 3, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Host string
	Port int
	DB   int
}

func (*Config) Validate

func (c *Config) Validate() error

type Mapper

type Mapper struct {
	// contains filtered or unexported fields
}

func NewMapper

func NewMapper(c *Config) (*Mapper, error)

func (*Mapper) GetSid

func (m *Mapper) GetSid(sid int) (RedisMap, bool)

func (Mapper) Missing

func (m Mapper) Missing() []int

type RedisMap

type RedisMap struct {
	ID     string `json:"id"`
	Sid    int    `json:"sid"`
	Tactic string `json:"tactic"`
	Name   string `json:"name"`
	Msg    string `json:"msg"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL