Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConstructFunction ¶
func ConstructFunction(function *restclient.Function) (*model.Function, error)
func LoadConfigFromEnv ¶
Types ¶
type Server ¶
type Server struct { Manager *fs.FunctionManager // contains filtered or unexported fields }
func NewDefaultServer ¶
func NewServer ¶
func NewServer(opts ...ServerOption) (*Server, error)
func (*Server) WaitForReady ¶
type ServerOption ¶
type ServerOption interface {
// contains filtered or unexported methods
}
func WithFunctionManager ¶
func WithFunctionManager(opts ...fs.ManagerOption) ServerOption
WithFunctionManager sets the function Manager for the server.
func WithHttpListener ¶
func WithHttpListener(listener net.Listener) ServerOption
WithHttpListener sets the listener for the HTTP server. If not set, the server will listen on the Config.ListenAddr.
func WithHttpTubeFactory ¶
func WithHttpTubeFactory(factory *contube.HttpTubeFactory) ServerOption
WithHttpTubeFactory sets the factory for the HTTP tube. If not set, the server will use the default HTTP tube factory.
Click to show internal directories.
Click to hide internal directories.