pkg

package
v0.0.0-...-a9f1d25 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2021 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InServiceDefList

func InServiceDefList(list []*proto.ServiceDefinition, name string) bool

func InServiceList

func InServiceList(list []*Service, name string) bool

func WithServerUnaryInterceptor

func WithServerUnaryInterceptor(procfile string) grpc.ServerOption

Types

type PrefixWriter

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

func (PrefixWriter) Write

func (w PrefixWriter) Write(p []byte) (n int, err error)

type Service

type Service struct {
	Name     string
	Command  string
	StopChan chan os.Signal
	// contains filtered or unexported fields
}

func NewServiceFromDef

func NewServiceFromDef(s *proto.ServiceDefinition) *Service

func (*Service) AddListener

func (s *Service) AddListener(ch chan []byte)

func (*Service) Clone

func (s *Service) Clone() *Service

func (*Service) RemoveListener

func (s *Service) RemoveListener(ch chan []byte)

func (*Service) Start

func (s *Service) Start(killChan <-chan os.Signal) error

Jump to

Keyboard shortcuts

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