types

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: May 8, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package types provides common interface contracts and function adapters used across the foomo ecosystem.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CloseFunc

type CloseFunc func()

func (CloseFunc) Close

func (f CloseFunc) Close(ctx context.Context) error

type CloseFuncCtx

type CloseFuncCtx func(context.Context)

func (CloseFuncCtx) Close

func (f CloseFuncCtx) Close(ctx context.Context) error

type CloseFuncCtxErr

type CloseFuncCtxErr func(context.Context) error

func (CloseFuncCtxErr) Close

func (f CloseFuncCtxErr) Close(ctx context.Context) error

type CloseFuncErr

type CloseFuncErr func() error

func (CloseFuncErr) Close

func (f CloseFuncErr) Close(ctx context.Context) error

type Closer

type Closer interface {
	Close(ctx context.Context) error
}

func AsCloser

func AsCloser(v any) (Closer, bool)

type Namer

type Namer interface {
	Name() string
}

type PingFunc

type PingFunc func()

func (PingFunc) Ping

func (f PingFunc) Ping(ctx context.Context) error

type PingFuncCtx

type PingFuncCtx func(context.Context)

func (PingFuncCtx) Ping

func (f PingFuncCtx) Ping(ctx context.Context) error

type PingFuncCtxErr

type PingFuncCtxErr func(context.Context) error

func (PingFuncCtxErr) Ping

func (f PingFuncCtxErr) Ping(ctx context.Context) error

type PingFuncErr

type PingFuncErr func() error

func (PingFuncErr) Ping

func (f PingFuncErr) Ping(ctx context.Context) error

type Pinger

type Pinger interface {
	Ping(ctx context.Context) error
}

func AsPinger

func AsPinger(v any) (Pinger, bool)

type ShutdownFunc

type ShutdownFunc func()

func (ShutdownFunc) Shutdown

func (f ShutdownFunc) Shutdown(ctx context.Context) error

type ShutdownFuncCtx

type ShutdownFuncCtx func(context.Context)

func (ShutdownFuncCtx) Shutdown

func (f ShutdownFuncCtx) Shutdown(ctx context.Context) error

type ShutdownFuncCtxErr

type ShutdownFuncCtxErr func(context.Context) error

func (ShutdownFuncCtxErr) Shutdown

func (f ShutdownFuncCtxErr) Shutdown(ctx context.Context) error

type ShutdownFuncErr

type ShutdownFuncErr func() error

func (ShutdownFuncErr) Shutdown

func (f ShutdownFuncErr) Shutdown(ctx context.Context) error

type Shutdowner

type Shutdowner interface {
	Shutdown(ctx context.Context) error
}

func AsShutdowner

func AsShutdowner(v any) (Shutdowner, bool)

type StartFunc added in v0.11.0

type StartFunc func()

func (StartFunc) Start added in v0.11.0

func (f StartFunc) Start(ctx context.Context) error

type StartFuncCtx added in v0.11.0

type StartFuncCtx func(context.Context)

func (StartFuncCtx) Start added in v0.11.0

func (f StartFuncCtx) Start(ctx context.Context) error

type StartFuncCtxErr added in v0.11.0

type StartFuncCtxErr func(context.Context) error

func (StartFuncCtxErr) Start added in v0.11.0

func (f StartFuncCtxErr) Start(ctx context.Context) error

type StartFuncErr added in v0.11.0

type StartFuncErr func() error

func (StartFuncErr) Start added in v0.11.0

func (f StartFuncErr) Start(ctx context.Context) error

type Starter added in v0.11.0

type Starter interface {
	Start(ctx context.Context) error
}

func AsStarter added in v0.11.0

func AsStarter(v any) (Starter, bool)

type StopFunc

type StopFunc func()

func (StopFunc) Stop

func (f StopFunc) Stop(ctx context.Context) error

type StopFuncCtx

type StopFuncCtx func(context.Context)

func (StopFuncCtx) Stop

func (f StopFuncCtx) Stop(ctx context.Context) error

type StopFuncCtxErr

type StopFuncCtxErr func(context.Context) error

func (StopFuncCtxErr) Stop

func (f StopFuncCtxErr) Stop(ctx context.Context) error

type StopFuncErr

type StopFuncErr func() error

func (StopFuncErr) Stop

func (f StopFuncErr) Stop(ctx context.Context) error

type Stopper

type Stopper interface {
	Stop(ctx context.Context) error
}

func AsStopper

func AsStopper(v any) (Stopper, bool)

type Stringer

type Stringer interface {
	String() string
}

type UnsubscribeFunc

type UnsubscribeFunc func()

func (UnsubscribeFunc) Unsubscribe

func (f UnsubscribeFunc) Unsubscribe(ctx context.Context) error

type UnsubscribeFuncCtx

type UnsubscribeFuncCtx func(context.Context)

func (UnsubscribeFuncCtx) Unsubscribe

func (f UnsubscribeFuncCtx) Unsubscribe(ctx context.Context) error

type UnsubscribeFuncCtxErr

type UnsubscribeFuncCtxErr func(context.Context) error

func (UnsubscribeFuncCtxErr) Unsubscribe

func (f UnsubscribeFuncCtxErr) Unsubscribe(ctx context.Context) error

type UnsubscribeFuncErr

type UnsubscribeFuncErr func() error

func (UnsubscribeFuncErr) Unsubscribe

func (f UnsubscribeFuncErr) Unsubscribe(ctx context.Context) error

type Unsubscriber

type Unsubscriber interface {
	Unsubscribe(ctx context.Context) error
}

func AsUnsubscriber

func AsUnsubscriber(v any) (Unsubscriber, bool)

Jump to

Keyboard shortcuts

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