socketservice

package
v0.1.13 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 5, 2024 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Overview

Package socketservice implements a service which runs and communicates with a separate independent process over a local unix socket (or similar).

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Factory

func Factory(conf *fspb.ClientServiceConfig) (service.Service, error)

Factory is a service.Factory returning a Service configured according to the provided configuration proto.

Types

type Service

type Service struct {
	// contains filtered or unexported fields
}

Service implements service.Service which communicates with an agent process over a Unix domain socket (or a Windows named pipe).

func (*Service) ProcessMessage

func (s *Service) ProcessMessage(ctx context.Context, m *fspb.Message) error

func (*Service) Start

func (s *Service) Start(sc service.Context) error

Start implements service.Service. Once it returns the service is listening for connections at the configured address.

func (*Service) Stop

func (s *Service) Stop() error

Directories

Path Synopsis
Package checks implements code which checks permissions of socket files to mitigate the possibility of a non-root attacker messing with socketservice communications channel.
Package checks implements code which checks permissions of socket files to mitigate the possibility of a non-root attacker messing with socketservice communications channel.
Package client is a go client library for socketservice.Service.
Package client is a go client library for socketservice.Service.
proto
Package testclient implements a socketservice client meant for testing.
Package testclient implements a socketservice client meant for testing.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL