service

package
v0.0.0-...-4d0f46b Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type UrlProvider

type UrlProvider struct {
	// contains filtered or unexported fields
}

func NewUrlProvider

func NewUrlProvider(
	baseUrl string,
) *UrlProvider

func (UrlProvider) Provide

func (p UrlProvider) Provide(l domain.Link) string

type Validator

type Validator struct {
	// contains filtered or unexported fields
}

func NewValidator

func NewValidator(
	repository domain.LinkRepository,
) *Validator

func (Validator) ValidateLocation

func (v Validator) ValidateLocation(location string) kontrakto.ValidationResult

func (Validator) ValidateToken

func (v Validator) ValidateToken(token string) kontrakto.ValidationResult

Jump to

Keyboard shortcuts

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