sequencer

package
v1.13.0 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2025 License: MIT Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Main

func Main(version string, fn MainFn) cliapp.LifecycleAction

Main is the entrypoint into the service. This method returns a cliapp.LifecycleAction, to create an op-service CLI-lifecycle-managed service with.

Types

type MainFn

type MainFn func(ctx context.Context, cfg *config.Config, logger log.Logger) (cliapp.Lifecycle, error)

type Service

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

func FromConfig

func FromConfig(ctx context.Context, cfg *config.Config, logger log.Logger) (*Service, error)

func (*Service) RPC

func (s *Service) RPC() string

func (*Service) Start

func (s *Service) Start(ctx context.Context) error

func (*Service) Stop

func (s *Service) Stop(ctx context.Context) error

func (*Service) Stopped

func (s *Service) Stopped() bool

Jump to

Keyboard shortcuts

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