generator

package
v0.0.0-...-ef8f1f6 Latest Latest
Warning

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

Go to latest
Published: May 16, 2019 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RedisCodec

type RedisCodec struct {
	CodecType string      `json:"codecType"`
	Paths     []RedisPath `json:"paths"`
}

RedisCodec represent a subset of paths for a given codec

func (RedisCodec) MarshalBinary

func (codec RedisCodec) MarshalBinary() ([]byte, error)

type RedisPath

type RedisPath = parser.Path

RedisPath represent the subpath plus a flag for indication if is secure

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

Jump to

Keyboard shortcuts

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