server

package
v0.0.0-...-378a548 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GRPC

type GRPC struct {
	EtcdClient *clientv3.Client
	Host       string
	Port       int
	AppName    string

	pb.UnimplementedCollectorServer
	// contains filtered or unexported fields
}

func (*GRPC) CrawlMetadata

func (g *GRPC) CrawlMetadata(ctx context.Context, req *wrapperspb.StringValue) (*pb.CrawlCounter, error)

func (*GRPC) Startup

func (g *GRPC) Startup() error

func (*GRPC) Stop

func (g *GRPC) Stop() error

func (*GRPC) StoreMetadata

func (g *GRPC) StoreMetadata(ctx context.Context, req *wrapperspb.StringValue) (*pb.StoreCounter, error)

Jump to

Keyboard shortcuts

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