Documentation ¶
Index ¶
- func Go(f func())
- type App
- type HookEvent
- type HookFunc
- type Option
- func WithComponent(c core.Component) Option
- func WithCrontab(opts ...cron.CronOptions) Option
- func WithGrpcServer(addr string, handler func(*grpc.Server), opts ...ServiceOption) Option
- func WithMetric(opts ...tracing.MetricOption) Option
- func WithRegistry(r discover.Registry) Option
- func WithService(s Service, opts ...ServiceOption) Option
- func WithTrace(opts ...tracing.TraceOption) Option
- func WithWebServer(addr string, mux http.Handler, opts ...ServiceOption) Option
- type Service
- type ServiceKind
- type ServiceOption
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Option ¶
type Option func(app *App)
Option ..
func WithComponent ¶
func WithCrontab ¶
func WithCrontab(opts ...cron.CronOptions) Option
func WithGrpcServer ¶
func WithGrpcServer(addr string, handler func(*grpc.Server), opts ...ServiceOption) Option
func WithMetric ¶
func WithMetric(opts ...tracing.MetricOption) Option
func WithRegistry ¶
func WithTrace ¶
func WithTrace(opts ...tracing.TraceOption) Option
func WithWebServer ¶
func WithWebServer(addr string, mux http.Handler, opts ...ServiceOption) Option
type ServiceKind ¶
type ServiceKind interface {
Kind() string
}
type ServiceOption ¶
type ServiceOption func(*discover.ServiceInfo)
type ServiceOption func(*ServiceContext)
func WithServiceMeta ¶
func WithServiceMeta(k, v string) ServiceOption
func WithServiceName ¶
func WithServiceName(name string) ServiceOption
Directories ¶
Path | Synopsis |
---|---|
example/api/v1
Package v1 is a reverse proxy.
|
Package v1 is a reverse proxy. |
pkg
|
|
tools
module
|
Click to show internal directories.
Click to hide internal directories.