blocker

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2020 License: BSD-3-Clause Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

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

Functions

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