rpc

package
v0.0.0-...-f014db2 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2022 License: GPL-3.0 Imports: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RPC

type RPC interface {
	//GetType returns the type of data that this RPC can check
	GetType() list.BlacklistedEntryType
	//Check checks a set of indexes against the rpc and returns a map
	//of the indexes to their results
	Check(...string) (map[string]database.BlacklistResult, error)
}

RPC is a remote procedure call which can be used to check a given index. Note: no caching is done on RPCs inside of rita-blacklist

func NewGoogleSafeBrowsingURLsRPC

func NewGoogleSafeBrowsingURLsRPC(apiKey, dbPath string, logger io.Writer) (RPC, error)

NewGoogleSafeBrowsingURLsRPC creates a rita-blacklist RPC for google's safebrowsing package for go

Jump to

Keyboard shortcuts

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