server

package
v0.0.20 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2024 License: MIT Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

ProviderSetServer is server providers.

Functions

func NewGRPCServer

func NewGRPCServer(c *conf.Server, pingService *service.PingService, logger log.Logger) *grpc.Server

NewGRPCServer new a gRPC server.

func NewHTTPServer

func NewHTTPServer(
	c *conf.Server,
	pingService *service.PingService,
	hookService *service.HookService,
	interflowService *service.HookInterflowService,
	logger log.Logger,
) *http.Server

NewHTTPServer new an HTTP server.

Types

type EventHandler

type EventHandler = interflow.Callback

type Watch

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

func NewWatch

func NewWatch(
	c *conf.Interflow,
	d *data.Data,
	loadService *service.LoadService,
	logger log.Logger,
) (*Watch, error)

func (*Watch) Start

func (w *Watch) Start(_ context.Context) error

func (*Watch) Stop

func (w *Watch) Stop(_ context.Context) error

Jump to

Keyboard shortcuts

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