Documentation ¶
Index ¶
- Constants
- Variables
- func Compress(data []byte) ([]byte, error)
- func Decompress(data []byte) ([]byte, error)
- func GetApp(conf *Config, l *goapp.Lifecycle) (*goapp.App, error)
- func GetStateChannel(id string, primary chan State) chan State
- func LoadRemoteStruct(url string, v interface{}) error
- func LoadStruct(file string, v interface{}) error
- func Marshal(v interface{}) ([]byte, error)
- func NewWorkerManager(process int, processCallback FuncProcess) *workerManager
- func OpenDatabaseWithBucket(basePath string, bucket []byte) (db *bolt.DB, err error)
- func SendWithHttpCode(res http.ResponseWriter, code int, message string)
- func Serialize(w io.Writer, data interface{}) error
- func Unmarshal(data []byte, v interface{}) error
- type BoltCompacter
- type BowerConfig
- type ComposerConfig
- type Config
- type FuncProcess
- type FuncResult
- type GitConfig
- type MirrorService
- type NpmConfig
- type SseBroker
- type State
- type StaticConfig
Constants ¶
View Source
const ( STATUS_RUNNING = 1 STATUS_HOLD = 2 STATUS_ERROR = 3 )
Variables ¶
View Source
var ( // ErrPathRequired is returned when the path to a Bolt database is not specified. ErrPathRequired = errors.New("path required") // ErrFileNotFound is returned when a Bolt database does not exist. ErrFileNotFound = errors.New("file not found") ErrUnableToCloseDatabase = errors.New("Unable to close the database") )
View Source
var ( SyncInProgressError = errors.New("A synchronization is already running") DatabaseLockedError = errors.New("The database is locked") EmptyKeyError = errors.New("No value available") ResourceNotFoundError = errors.New("Resource not found") EmptyDataError = errors.New("Empty data") SameKeyError = errors.New("Same key") HttpError = errors.New("Http error") InvalidPackageError = errors.New("Invalid package error") InvalidReferenceError = errors.New("Invalid reference") )
Functions ¶
func Decompress ¶
func GetStateChannel ¶
func LoadRemoteStruct ¶
func LoadStruct ¶
func NewWorkerManager ¶
func NewWorkerManager(process int, processCallback FuncProcess) *workerManager
func OpenDatabaseWithBucket ¶
func SendWithHttpCode ¶
func SendWithHttpCode(res http.ResponseWriter, code int, message string)
Types ¶
type BoltCompacter ¶
func (*BoltCompacter) Compact ¶
func (bc *BoltCompacter) Compact(srcPath string) (err error)
Run executes the command.
type BowerConfig ¶
type ComposerConfig ¶
type FuncProcess ¶
type FuncProcess func(id int, data <-chan interface{}, result chan interface{})
type FuncResult ¶
type FuncResult func(raw interface{})
type MirrorService ¶
type SseBroker ¶
type SseBroker struct { // Events are pushed to this channel by the main events-gathering routine Notifier chan []byte // contains filtered or unexported fields }
code adapted from https://gist.github.com/ismasan/3fb75381cd2deb6bfa9c
func NewSseBroker ¶
func NewSseBroker() *SseBroker
type StaticConfig ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.