grpctrack

package
v0.0.0-...-28926d1 Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type QueuePublisher

type QueuePublisher interface {
	PublishTrackingNumbersToQueue(
		ctx context.Context,
		id string,
		trackingNumbers []string,
	) ([]appmodels.TrackingNumber, error)
}

type TrackGRPCApi

type TrackGRPCApi struct {
	trackingService2.UnimplementedTrackingServer
	// contains filtered or unexported fields
}

func NewTrackGRPCApi

func NewTrackGRPCApi(log logger.Logger, tracking Tracking) *TrackGRPCApi

type Tracking

type Tracking interface {
	QueuePublisher
	TrackingResultGetter
}

type TrackingResultGetter

type TrackingResultGetter interface {
	GetTrackingResult(ctx context.Context, id string) ([]*appmodels.Crawler, error)
}

Jump to

Keyboard shortcuts

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