fake

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	FakeTestFilePath = "fake_subscriber.txt"
)

Variables

This section is empty.

Functions

func New

func New(filepath string) (subscriber.Subscriber, error)

Types

type FakeSubscriber

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

func (*FakeSubscriber) Name

func (s *FakeSubscriber) Name() string

func (*FakeSubscriber) Publish

func (s *FakeSubscriber) Publish(dest string, content string, timestamp int64, msg *types.Message) []error

func (*FakeSubscriber) Status

func (s *FakeSubscriber) Status() interface{}

Jump to

Keyboard shortcuts

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