bridge

package
v0.0.0-...-bb1bb1d Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrUnknownBackend = errors.New("unknown backend type")

Functions

This section is empty.

Types

type Config

type Config struct {
	Address string `json:"address"`
	Backend string `json:"backend"`
}

type Conn

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

func (*Conn) Bury

func (c *Conn) Bury(id uint64, pri uint64) error

func (*Conn) Delete

func (c *Conn) Delete(id uint64) error

func (*Conn) Ignore

func (c *Conn) Ignore(tube string) (int, error)

func (*Conn) Put

func (c *Conn) Put(pri uint64, delay uint64, ttr uint64, data []byte) (uint64, bool, error)

func (*Conn) Release

func (c *Conn) Release(id uint64, pri uint64, delay uint64) error

func (*Conn) Reserve

func (c *Conn) Reserve(timeout int64) (uint64, []byte, error)

func (*Conn) ReserveByID

func (c *Conn) ReserveByID(id uint64) (uint64, []byte, error)

func (*Conn) Touch

func (c *Conn) Touch(id uint64) error

func (*Conn) Use

func (c *Conn) Use(tube string) (string, error)

func (*Conn) Watch

func (c *Conn) Watch(tube string) (int, error)

type Server

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

func NewServer

func NewServer(logger *slog.Logger, cfg *Config) (*Server, error)

func (*Server) Serve

func (s *Server) Serve() error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳