plugin_interfaces

package
v1.3.6 Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Antispam

type Antispam interface {
	HandleConfig(config map[string]interface{}) error
	CheckForSpam(b64 string, filename string, contentType string, userId string, origin string, mediaId string) (bool, error)
}

type AntispamPlugin

type AntispamPlugin struct {
	Impl Antispam
}

func (*AntispamPlugin) Client

func (p *AntispamPlugin) Client(broker *plugin.MuxBroker, c *rpc.Client) (interface{}, error)

func (*AntispamPlugin) Server

func (p *AntispamPlugin) Server(broker *plugin.MuxBroker) (interface{}, error)

type AntispamRPC

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

func (*AntispamRPC) CheckForSpam

func (g *AntispamRPC) CheckForSpam(b64 string, filename string, contentType string, userId string, origin string, mediaId string) (bool, error)

func (*AntispamRPC) HandleConfig

func (g *AntispamRPC) HandleConfig(config map[string]interface{}) error

type AntispamRPCServer

type AntispamRPCServer struct {
	Impl Antispam
}

func (*AntispamRPCServer) CheckForSpam

func (s *AntispamRPCServer) CheckForSpam(args map[string]interface{}, resp *bool) error

func (*AntispamRPCServer) HandleConfig

func (s *AntispamRPCServer) HandleConfig(args map[string]interface{}, resp *string) error

Jump to

Keyboard shortcuts

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