blocker

package
v1.1.9 Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2023 License: BSD-3-Clause Imports: 4 Imported by: 24

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Table  goka.Table  = goka.GroupTable(group)
	Stream goka.Stream = "block_user"
)

Functions

func PrepareTopics added in v1.1.3

func PrepareTopics(brokers []string)

func Run

func Run(ctx context.Context, brokers []string) func() error

Types

type BlockEvent

type BlockEvent struct {
	Unblock bool
}

type BlockEventCodec

type BlockEventCodec struct{}

func (*BlockEventCodec) Decode

func (c *BlockEventCodec) Decode(data []byte) (interface{}, error)

func (*BlockEventCodec) Encode

func (c *BlockEventCodec) Encode(value interface{}) ([]byte, error)

type BlockValue

type BlockValue struct {
	Blocked bool
}

type BlockValueCodec

type BlockValueCodec struct{}

func (*BlockValueCodec) Decode

func (c *BlockValueCodec) Decode(data []byte) (interface{}, error)

func (*BlockValueCodec) Encode

func (c *BlockValueCodec) Encode(value interface{}) ([]byte, error)

Jump to

Keyboard shortcuts

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