package
Version:
v0.11.0
Opens a new window with list of versions in this module.
Published: Feb 8, 2024
License: Apache-2.0
Opens a new window with license information.
Imports: 6
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type Config struct {
Addr string `yaml:"address" json:"address"`
TLS TLSConfig `yaml:"tls" json:"tls"`
}
New instantiates a listening server.
When passing addr with an unspecified port or ":", use Addr().
Server handles gRPC requests to the service.
func (s *Server) AddCloseFunc(f func())
AddCloseFunc adds a function to be called by the Close method.
This eliminates the need for wrapping the Server.
type TLSConfig struct {
Enabled bool `yaml:"enabled" json:"enabled"`
server.Config `yaml:",inline"`
}
Source Files
¶
Directories
¶
Click to show internal directories.
Click to hide internal directories.