Documentation
¶
Overview ¶
Package daemon is handling the TCP connection and connecting a GRPC service to it.
Index ¶
Constants ¶
View Source
const ERROR_BUFFER_OVERFLOW = daemontestutils.ERROR_BUFFER_OVERFLOW
ERROR_BUFFER_OVERFLOW is the error returned by GetAdaptersAddresses when the buffer is too small.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Daemon ¶
type Daemon struct {
// contains filtered or unexported fields
}
Daemon is a daemon for windows agents with grpc support.
func New ¶
func New(ctx context.Context, registerGRPCServices GRPCServiceRegisterer, addrDir string) *Daemon
New returns an new, initialized daemon server that is ready to register GRPC services. It hooks up to windows service management handler.
func (Daemon) Quit ¶
Quit gracefully quits listening loop and stops the grpc server. It can drop any existing connexion if force is true.
type GRPCServiceRegisterer ¶
GRPCServiceRegisterer is a function that the daemon will call everytime we want to build a new GRPC object.
Directories
¶
Path | Synopsis |
---|---|
Package daemontestutils exports test helpers to be used in other packages that need to change internal behaviors of the daemon.
|
Package daemontestutils exports test helpers to be used in other packages that need to change internal behaviors of the daemon. |
Click to show internal directories.
Click to hide internal directories.