Documentation
¶
Index ¶
- func GetInvocationModules() []module.InvocationModule
- func LoadStoredExposedHandlers(fs embed.FS) ([]*protobuf.DaprHandler, error)
- func NewGrpcServer(app, address string, options ...ServerOption) (types.AppServer, error)
- func NewHttpServer(app, address string, options ...ServerOption) (types.AppServer, error)
- type RegisterFunction
- type ServerOption
- func WithAssets(fs embed.FS) ServerOption
- func WithDebug(debug bool) ServerOption
- func WithProviders(providers ...types.Provider) ServerOption
- func WithRegisterFunction(fn RegisterFunction) ServerOption
- func WithRegisterHandlers(handlers []*protobuf.DaprHandler) ServerOption
- func WithSkipRegister() ServerOption
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetInvocationModules ¶
func GetInvocationModules() []module.InvocationModule
func LoadStoredExposedHandlers ¶
func LoadStoredExposedHandlers(fs embed.FS) ([]*protobuf.DaprHandler, error)
LoadStoredExposedHandlers 从embed.FS中加载ast解析后保存的DaprHandlers
func NewGrpcServer ¶
func NewGrpcServer(app, address string, options ...ServerOption) (types.AppServer, error)
func NewHttpServer ¶
func NewHttpServer(app, address string, options ...ServerOption) (types.AppServer, error)
Types ¶
type RegisterFunction ¶
type RegisterFunction func(string, []*protobuf.DaprHandler) error
RegisterFunction app向gateway注册的函数
type ServerOption ¶
type ServerOption func(impl *daprServerImpl)
func WithAssets ¶
func WithAssets(fs embed.FS) ServerOption
func WithDebug ¶
func WithDebug(debug bool) ServerOption
func WithProviders ¶
func WithProviders(providers ...types.Provider) ServerOption
WithProviders 提供的providers
func WithRegisterFunction ¶
func WithRegisterFunction(fn RegisterFunction) ServerOption
func WithRegisterHandlers ¶
func WithRegisterHandlers(handlers []*protobuf.DaprHandler) ServerOption
func WithSkipRegister ¶
func WithSkipRegister() ServerOption
Click to show internal directories.
Click to hide internal directories.