Documentation ¶
Overview ¶
Package server is a helper package for creating a Horizon server.
It is provided to help start the different services of Horizon that are needed like the store, broker, gateway and any core reconcilers (like accounts).
It also contains some helper methods for things like starting a nats connection.
Index ¶
- type Server
- type ServerOption
- func WithAccountsControllerOptions(opts ...hz.ControllerOption) ServerOption
- func WithAuthOptions(opts ...auth.Option) ServerOption
- func WithDevMode() ServerOption
- func WithGatewayOptions(opts ...gateway.ServerOption) ServerOption
- func WithNATSConn(conn *nats.Conn) ServerOption
- func WithNATSOptions(opts ...natsutil.ServerOption) ServerOption
- func WithRunAccountsController(b bool) ServerOption
- func WithRunAuth(b bool) ServerOption
- func WithRunBroker(b bool) ServerOption
- func WithRunGateway(b bool) ServerOption
- func WithRunNATS(b bool) ServerOption
- func WithRunStore(b bool) ServerOption
- func WithRunUsersActor(b bool) ServerOption
- func WithStoreOptions(opts ...store.StoreOption) ServerOption
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Server ¶
type ServerOption ¶
type ServerOption func(*serverOptions)
func WithAccountsControllerOptions ¶
func WithAccountsControllerOptions(opts ...hz.ControllerOption) ServerOption
func WithAuthOptions ¶
func WithAuthOptions(opts ...auth.Option) ServerOption
func WithDevMode ¶
func WithDevMode() ServerOption
func WithGatewayOptions ¶
func WithGatewayOptions(opts ...gateway.ServerOption) ServerOption
func WithNATSConn ¶
func WithNATSConn(conn *nats.Conn) ServerOption
func WithNATSOptions ¶
func WithNATSOptions(opts ...natsutil.ServerOption) ServerOption
func WithRunAccountsController ¶
func WithRunAccountsController(b bool) ServerOption
func WithRunAuth ¶
func WithRunAuth(b bool) ServerOption
func WithRunBroker ¶
func WithRunBroker(b bool) ServerOption
func WithRunGateway ¶
func WithRunGateway(b bool) ServerOption
func WithRunNATS ¶
func WithRunNATS(b bool) ServerOption
func WithRunStore ¶
func WithRunStore(b bool) ServerOption
func WithRunUsersActor ¶
func WithRunUsersActor(b bool) ServerOption
func WithStoreOptions ¶
func WithStoreOptions(opts ...store.StoreOption) ServerOption
Click to show internal directories.
Click to hide internal directories.