buncomponent

package module
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2022 License: Apache-2.0 Imports: 18 Imported by: 4

README

Logrus component

use with jo-micro/components

Authors

License

Its dual licensed:

  • Apache-2.0
  • GPL-2.0-or-later

Documentation

Index

Constants

View Source
const Name = "bun"

Variables

This section is empty.

Functions

This section is empty.

Types

type BunComponent

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

func MustReg

func MustReg(cReg *components.Registry) *BunComponent

func New

func New() *BunComponent

func (*BunComponent) Bun

func (c *BunComponent) Bun() *bun.DB

func (*BunComponent) Flags

func (c *BunComponent) Flags(r *components.Registry) []cli.Flag

func (*BunComponent) Health

func (c *BunComponent) Health(context context.Context) error

func (*BunComponent) Init

func (c *BunComponent) Init(r *components.Registry, cli *cli.Context) error

func (*BunComponent) Initialized

func (c *BunComponent) Initialized() bool

func (*BunComponent) Name

func (c *BunComponent) Name() string

func (*BunComponent) Priority

func (c *BunComponent) Priority() int

func (*BunComponent) Stop

func (c *BunComponent) Stop() error

Jump to

Keyboard shortcuts

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