test

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ContentWriterMock

type ContentWriterMock struct {
	contentwriterV1.UnimplementedContentWriterServer
	*grpc.Server

	Cancel  string
	Header  *contentwriterV1.Data
	Payload *contentwriterV1.Data
	Meta    *contentwriterV1.WriteRequestMeta
	// contains filtered or unexported fields
}

ContentWriterMock is used to implement ContentWriterServer.

func NewContentWriterServerMock

func NewContentWriterServerMock() *ContentWriterMock

NewContentWriterServerMock creates a new ContentWriterServerMock

func (*ContentWriterMock) Close

func (s *ContentWriterMock) Close()

Close implements ContentWriterServer

func (*ContentWriterMock) Delete

func (s *ContentWriterMock) Delete(ctx context.Context, in *emptypb.Empty) (*emptypb.Empty, error)

Delete implements ContentWriterServer

func (*ContentWriterMock) Flush

Flush implements ContentWriterServer

func (*ContentWriterMock) Reset

func (s *ContentWriterMock) Reset()

func (*ContentWriterMock) Write

Write implements ContentWriterServer

type LogServiceMock

type LogServiceMock struct {
	logV1.UnimplementedLogServer
	*grpc.Server

	CrawlLog *logV1.CrawlLog
	// contains filtered or unexported fields
}

LogServiceMock is used to implement ContentWriterServer.

func NewLogServiceMock

func NewLogServiceMock() *LogServiceMock

NewContentWriterServerMock creates a new ContentWriterServerMock

func (*LogServiceMock) Close

func (s *LogServiceMock) Close()

Close implements ContentWriterServer

func (*LogServiceMock) Len

func (s *LogServiceMock) Len() int

func (*LogServiceMock) Reset

func (s *LogServiceMock) Reset()

func (*LogServiceMock) WriteCrawlLog

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

Jump to

Keyboard shortcuts

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