example

package
v0.1.7 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2025 License: Apache-2.0 Imports: 6 Imported by: 0

README

Example Service

This folder contains an example implementation of a service that demonstrates how to create a basic service using the framingo service framework.

Files

  • manager.go - Main implementation of the example service manager that implements the common service interfaces
  • model.go - Interface definition for the Manager that extends common service interfaces
  • option.go - Configuration options for the service (logger, name)

Usage

The example service implements the following interfaces:

  • common.Service - Basic service functionality
  • common.Initializable - Service initialization
  • common.Daemon - Start/stop daemon behavior
  • common.Debuggable - Debug information output

This serves as a template for creating new services in the framingo framework.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Manager

func New

func New(opts ...Option) Manager

type Option

type Option func(*manager)

func WithLogger

func WithLogger(logger log.Logger) Option

func WithName

func WithName(name string) Option

Jump to

Keyboard shortcuts

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