ports

package
v0.0.0-...-7fa42c6 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type APIPort

type APIPort interface {
	Redirect(
		ctx context.Context,
		request *redirect.RedirectRequest,
		md metadata.MD) (*redirect.RedirectResponse, error)
}

type DBPort

type DBPort interface {
}

type RabbitMQPort

type RabbitMQPort interface {
	PublishClickEvent(ctx context.Context, urlClick *redirect.RedirectRequest, md metadata.MD) error
}

type RedisPort

type RedisPort interface {
	GetUrl(ctx context.Context, shortKey string) (*redirect.RedirectResponse, error)
	SetUrl(ctx context.Context, shortKey string, url *url.UrlResponse) error
}

type ShortenerPort

type ShortenerPort interface {
	GetUrlByShortKey(ctx context.Context, shortKey string) (*url.UrlResponse, error)
}

Jump to

Keyboard shortcuts

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