Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ProviderSet = wire.NewSet( NewConfig, NewOptions, NewBoreServer, )
ProviderSet exports for wire DI.
Functions ¶
Types ¶
type BoreServer ¶
BoreServer defines main struct for bore server and includes HTTP and SSH server instances.
func NewBoreServer ¶
func NewBoreServer(opts *Options, logger *zap.Logger) *BoreServer
NewBoreServer returns new instance of BoreServer.
type HTTPServer ¶
HTTPServer extends net/http Server with graceful shutdowns.
func NewHTTPServer ¶
func NewHTTPServer(logger *zap.SugaredLogger) *HTTPServer
NewHTTPServer creates a new HTTPServer instance.
type Options ¶
type Options struct { Domain string PrivateKey string PublicKey string SSHAddr string HTTPAddr string Logger *logger.Options }
Options are global config for bore server.
type SSHServer ¶
type SSHServer struct {
// contains filtered or unexported fields
}
SSHServer defines SSH server instance.
func NewSSHServer ¶
func NewSSHServer(opts *Options, logger *zap.SugaredLogger) *SSHServer
NewSSHServer returns new instance of SSHServer.
Click to show internal directories.
Click to hide internal directories.