Documentation
¶
Overview ¶
Example ¶
package main import ( "github.com/goph/fxt" fxgrpc "github.com/goph/fxt/grpc" "go.uber.org/fx" ) func main() { app := fx.New( fx.NopLogger, fxt.Bootstrap, fx.Provide( func() *fxgrpc.Config { return fxgrpc.NewConfig(":8080") }, fxgrpc.NewServer, ), ) if err := app.Err(); err != nil { panic(err) } }
Output:
Index ¶
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Network string Addr string // Register the reflection API or not ReflectionEnabled bool // A list of arbitrary server options for the gRPC server Options []grpc.ServerOption }
Config holds a list of options used during the grpc server construction.
Click to show internal directories.
Click to hide internal directories.