Set package to micro

This commit is contained in:
Asim 2016-01-02 19:14:56 +00:00
parent 3b56a62589
commit 7a02bda06b
4 changed files with 11 additions and 11 deletions

View File

@ -17,7 +17,7 @@ Go micro provides a pluggable library to build microservices.
*/
package gomicro
package micro
import (
"github.com/micro/go-micro/client"

View File

@ -1,4 +1,4 @@
package gomicro
package micro
import (
"github.com/micro/cli"
@ -96,6 +96,13 @@ func Version(v string) Option {
}
}
// Metadata associated with the service
func Metadata(md map[string]string) Option {
return func(o *Options) {
o.Server.Init(server.Metadata(md))
}
}
func Flags(flags ...cli.Flag) Option {
return func(o *Options) {
o.Cmd.App().Flags = append(o.Cmd.App().Flags, flags...)
@ -108,13 +115,6 @@ func Action(a func(*cli.Context)) Option {
}
}
// Metadata associated with the service
func Metadata(md map[string]string) Option {
return func(o *Options) {
o.Server.Init(server.Metadata(md))
}
}
// Before and Afters
func BeforeStart(fn func() error) Option {

View File

@ -1,4 +1,4 @@
package gomicro
package micro
import (
"os"

View File

@ -1,4 +1,4 @@
package gomicro
package micro
import (
"github.com/micro/go-micro/client"