simple

package
v0.0.0-...-3b037d6 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2020 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ChangeEmail

type ChangeEmail struct {
	Email string
}

type ChangeEmailReply

type ChangeEmailReply struct {
	Confirm bool
}

type ChangeName

type ChangeName struct {
	Name string
}

type ChangeNameReply

type ChangeNameReply struct {
	Hash string
}

type CommandBus

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

func NewCommandBus

func NewCommandBus(addr []string) (*CommandBus, error)

func (*CommandBus) Close

func (c *CommandBus) Close() error

func (*CommandBus) Listen

func (c *CommandBus) Listen(ctx context.Context) error

func (*CommandBus) ReceiveChangeEmail

func (c *CommandBus) ReceiveChangeEmail(cr es.CommandReceiverFunc)

func (*CommandBus) ReceiveChangeName

func (c *CommandBus) ReceiveChangeName(cr es.CommandReceiverFunc)

func (*CommandBus) SendChangeEmail

func (c *CommandBus) SendChangeEmail(ctx context.Context, streamID uuid.UUID, ce ChangeEmail) (ChangeEmailReply, error)

func (*CommandBus) SendChangeName

func (c *CommandBus) SendChangeName(ctx context.Context, streamID uuid.UUID, ce ChangeName) (ChangeNameReply, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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