Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RedisCodec ¶
RedisCodec represent a subset of paths for a given codec
func (RedisCodec) MarshalBinary ¶
func (codec RedisCodec) MarshalBinary() ([]byte, error)
type RedisProtocol ¶
type RedisProtocol struct { Models []string `json:"models"` Codecs []RedisCodec `json:"codecs"` }
RedisProtocol is the structure which represent a particular IPCam with it's vendor, protocol, codec and relative subpath
func (RedisProtocol) MarshalBinary ¶
func (protocol RedisProtocol) MarshalBinary() ([]byte, error)
type ShinobiGenerator ¶
type ShinobiGenerator interface {
Generate(pkg, dest string, params []parser.ShinobiParam) error
}
ShinobiGenerator defines an interface for save generated go file
func NewRedisGenerator ¶
func NewRedisGenerator(addr, password string, db int) ShinobiGenerator
NewRedisGenerator instantiate a generator which deploy all data on redis and generate a client file
func NewSourceJenniferGenerator ¶
func NewSourceJenniferGenerator() ShinobiGenerator
NewJenniferGenerator define a new generator based on jennifer
Click to show internal directories.
Click to hide internal directories.