README ¶ nami Lightweight game framework with golang Expand ▾ Collapse ▴ Documentation ¶ Index ¶ type App func New(opts ...Option) (a *App, err error) func (a *App) Run() (err error) func (a *App) Stop() (err error) type Option func Context(ctx context.Context) Option func ID(id string) Option func Logger(logger log.Logger) Option func MetaData(metadata map[string]string) Option func Name(name string) Option func Registrar(registrar registry.Registrar) Option func Servers(srv ...transport.Server) Option Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type App ¶ type App struct { // contains filtered or unexported fields } func New ¶ func New(opts ...Option) (a *App, err error) func (*App) Run ¶ func (a *App) Run() (err error) func (*App) Stop ¶ func (a *App) Stop() (err error) type Option ¶ type Option func(*options) func Context ¶ func Context(ctx context.Context) Option func ID ¶ func ID(id string) Option func Logger ¶ func Logger(logger log.Logger) Option func MetaData ¶ func MetaData(metadata map[string]string) Option func Name ¶ func Name(name string) Option func Registrar ¶ func Registrar(registrar registry.Registrar) Option func Servers ¶ func Servers(srv ...transport.Server) Option Source Files ¶ View all Source files app.go options.go Directories ¶ Show internal Expand all Path Synopsis core chain log examples helloword internal cluster endpoint host registry etcd transport grpc http http/handler Click to show internal directories. Click to hide internal directories.