testutil

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LogServiceMock

type LogServiceMock struct {
	logV1.UnimplementedLogServer
	*grpc.Server

	CrawlLogs []*logV1.CrawlLog
	PageLogs  []*logV1.PageLog
	// contains filtered or unexported fields
}

LogServiceMock is used to implement ContentWriterServer.

func NewLogServiceMock

func NewLogServiceMock(port int) *LogServiceMock

NewLogServiceMock creates a new LogServiceMock

func (*LogServiceMock) Close

func (s *LogServiceMock) Close()

func (*LogServiceMock) Reset

func (s *LogServiceMock) Reset()

func (*LogServiceMock) WriteCrawlLog

func (s *LogServiceMock) WriteCrawlLog(stream logV1.Log_WriteCrawlLogServer) error

func (*LogServiceMock) WritePageLog

func (s *LogServiceMock) WritePageLog(stream logV1.Log_WritePageLogServer) error

Jump to

Keyboard shortcuts

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