lamp

package module
Version: v0.0.0-...-d144a35 Latest Latest
Warning

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

Go to latest
Published: May 6, 2017 License: MIT Imports: 7 Imported by: 0

README

Lamp

GoDoc License Build Status Coverage Status

A Go microservice frame based on NSQ.

Stack

Install

glide update

Test

./test.sh

Usage

lamp.On(s)

License

MIT

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Lamp

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

Lamp microservice

func On

func On(s Shade) (l *Lamp, err error)

On turns on the Lamp

func (*Lamp) Output

func (l *Lamp) Output(calldepth int, s string) (err error)

Output logger

func (*Lamp) Restart

func (l *Lamp) Restart() (err error)

Restart restarts the Lamp

type Shade

type Shade interface {
	EchoServe()
	HandleMessage(message *nsq.Message) error
}

Shade interface

Source Files

Directories

Path Synopsis
kits
cli
cli/proto
Package proto is a generated protocol buffer package.
Package proto is a generated protocol buffer package.
end
cmd
db
md
mq

Jump to

Keyboard shortcuts

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