Versions in this module Expand all Collapse all v0 v0.1.0 Nov 27, 2020 Changes in this version type Service + RegisterService func(desc *grpc.ServiceDesc, impl interface{}) v0.0.2 Nov 15, 2020 Changes in this version + func NewOptions() *options + type Option func(*options) + func WithAddress(addr string) Option + func WithAfterStart(fn ...func() error) Option + func WithAfterStop(fn ...func() error) Option + func WithBeforeStart(fn ...func() error) Option + func WithBeforeStop(fn ...func() error) Option + func WithCACert(path string) Option + func WithCert(path string) Option + func WithContext(ctx context.Context) Option + func WithDB(dialect string, args ...interface{}) Option + func WithGRPCServerOpts(opts ...grpc.ServerOption) Option + func WithKey(path string) Option + func WithName(name string) Option + func WithReflection(r bool) Option + func WithRegistry(registry registry.Registry) Option + func WithSecure(s bool) Option + func WithStreamClientInterceptor(i ...grpc.StreamClientInterceptor) Option + func WithStreamServerInterceptor(i ...grpc.StreamServerInterceptor) Option + func WithSubscriberInterceptor(w ...interface{}) Option + func WithTLSConfig(conf *tls.Config) Option + func WithUnaryClientInterceptor(i ...grpc.UnaryClientInterceptor) Option + func WithUnaryServerInterceptor(i ...grpc.UnaryServerInterceptor) Option + func WithVersion(version string) Option + type Options interface + Address func() string + AfterStart func() []func() error + AfterStop func() []func() error + BeforeStart func() []func() error + BeforeStop func() []func() error + CACert func() string + Cert func() string + ClientInterceptors func() []grpc.UnaryClientInterceptor + Context func() context.Context + DB func() *gorm.DB + Defaults func() + Key func() string + Name func() string + Reflection func() bool + Registry func() registry.Registry + Secure func() bool + ServerInterceptors func() []grpc.UnaryServerInterceptor + ServerOpts func() []grpc.ServerOption + StreamClientInterceptors func() []grpc.StreamClientInterceptor + StreamServerInterceptors func() []grpc.StreamServerInterceptor + TLSConfig func() *tls.Config + Version func() string + type Service interface + Close func() error + Cmd func() *cobra.Command + DB func() *gorm.DB + Options func() Options + Server func() *grpc.Server + Start func() error + Stop func() error + func New(opts ...Option) (Service, error)