package
0.0.0-20241027004147-7e65db198d73
Repository: https://github.com/go-orb/go-orb.git
Documentation: pkg.go.dev

# Functions

NewRegistrationFunc takes a registration function and handler and returns a registration func that can be used with one specific server type.
Provide creates a new server.
WithDisabled disables an entrypoint.
WithEntrypointConfig allows you to create an entrypoint functionally.
WithHandlers appends the given handlers.
WithMiddlewares appends the given middlewares.

# Constants

ComponentType is the server component type name.
EntrypointType will be returned by each entrypoint on Type().

# Variables

nolint:gochecknoglobals.
Errors.
Errors.
Errors.
Handlers is a container of registration functions that can be used to dynamically configure entrypoints.
nolint:gochecknoglobals.
Plugins is the plugins container for registry.
PluginsNew holds the New function of Entrypoints, it's here to create entrypoints from given configs.

# Structs

Config is the global config for servers.
EntrypointConfig is the base config for all entrypoints.
MiddlewareConfig is the base config for all middlewares.
Server is responsible for managing entrypoints.

# Interfaces

Entrypoint is a server, and represents an entrypoint into the web.
EntrypointConfigType is here so we can do magic work on options.
Middleware is an interface that must be implemented by server Middlewares.

# Type aliases

ConfigOption allows to set options for MyConfig.
EntrypointNew is the function type to create a new entrypoint.
EntrypointProvider is the function type to create a new entrypoint.
MiddlewareCallHandler is the Handler for unary RPC Calls.
MiddlewareProvider is the provider for a middleware, each Middleware must supply this to register itself.
MiddlewareStreamHandler is the handler for streaming RPC calls.
Option is a functional entrypoint option.
RegistrationFunc is executed to register a handler to a server (entrypoint) passed as srv.