handler

package
v0.0.0-...-60df22a Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2022 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Default

type Default struct{}

func (*Default) DoData

func (s *Default) DoData(d []byte) bool

func (*Default) DoHelo

func (s *Default) DoHelo(args string) bool

func (*Default) DoMailFrom

func (s *Default) DoMailFrom(args string) bool

func (*Default) DoRcptTo

func (s *Default) DoRcptTo(args string) bool

func (Default) String

func (s Default) String() string

type Handler

type Handler interface {
	DoHelo(args string) bool
	DoMailFrom(args string) bool
	DoRcptTo(args string) bool
	DoData(d []byte) bool
}

type HikVision

type HikVision struct {
	Logger  logging.Logger
	Chat    chat.Chat
	DataDir string
}

HikVision is a handler for hikvision

func (*HikVision) DoData

func (hv *HikVision) DoData(d []byte) bool

func (*HikVision) DoHelo

func (hv *HikVision) DoHelo(args string) bool

func (*HikVision) DoMailFrom

func (hv *HikVision) DoMailFrom(args string) bool

func (*HikVision) DoRcptTo

func (hv *HikVision) DoRcptTo(args string) bool

func (HikVision) String

func (hv HikVision) String() string

Jump to

Keyboard shortcuts

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