blocker

package
v0.0.0-...-17e8eef Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2018 License: BSD-3-Clause Imports: 2 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(brokers []string)

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