Documentation ¶
Overview ¶
Package daemon handles the GRPC daemon with systemd support.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WithSocketPath ¶
func WithSocketPath(p string) func(o *options)
WithSocketPath uses a manual socket path instead of socket activation.
Types ¶
type Daemon ¶
type Daemon struct {
// contains filtered or unexported fields
}
Daemon is a grpc daemon with systemd support.
func New ¶
func New(ctx context.Context, registerGRPCService GRPCServiceRegisterer, args ...Option) (d *Daemon, err error)
New returns an new, initialized daemon server, which handles systemd activation. If systemd activation is used, it will override any socket passed here.
type GRPCServiceRegisterer ¶
GRPCServiceRegisterer is a function that the daemon will call everytime we want to build a new GRPC object.
Click to show internal directories.
Click to hide internal directories.