command

package
v0.0.0-...-a743c3d Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Command

type Command interface {
	Execute(message.RequestMessage) <-chan []byte
}

type DelCommand

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

func NewDelCommand

func NewDelCommand(ra *raft.Raft) *DelCommand

func (*DelCommand) Execute

func (c *DelCommand) Execute(m message.RequestMessage) <-chan []byte

type DumpCommand

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

func NewDumpCommand

func NewDumpCommand(cache *cache.Cache) *DumpCommand

func (*DumpCommand) Execute

func (c *DumpCommand) Execute(m message.RequestMessage) <-chan []byte

type GetCommand

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

func NewGetCommand

func NewGetCommand(cache *cache.Cache) *GetCommand

func (*GetCommand) Execute

func (c *GetCommand) Execute(m message.RequestMessage) <-chan []byte

TODO: MAKE TEST

type HasCommand

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

func NewHasCommand

func NewHasCommand(cache *cache.Cache) *HasCommand

func (*HasCommand) Execute

func (c *HasCommand) Execute(m message.RequestMessage) <-chan []byte

TODO: MAKE TEST

type JoinCommand

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

func NewJoinCommand

func NewJoinCommand(ra *raft.Raft) *JoinCommand

func (*JoinCommand) Execute

func (c *JoinCommand) Execute(m message.RequestMessage) <-chan []byte

type PingCommand

type PingCommand struct {
}

func NewPingCommand

func NewPingCommand() *PingCommand

func (*PingCommand) Execute

func (c *PingCommand) Execute(m message.RequestMessage) <-chan []byte

type SetCommand

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

func NewSetCommand

func NewSetCommand(ra *raft.Raft) *SetCommand

func (*SetCommand) Execute

func (c *SetCommand) Execute(m message.RequestMessage) <-chan []byte

TODO: MAKE TEST FOR Set Command

Jump to

Keyboard shortcuts

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