kontrakto

package module
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2023 License: MIT Imports: 0 Imported by: 0

README

com.kontrakto

Microservice interaction contracts

Documentation

Index

Constants

View Source
const (
	AppLigilo  = "com.ligilo"
	AppJurnalo = "com.jurnalo"
)
View Source
const (
	RegexHttpUrl = "https?://(www\\.)?[-a-zA-Z0-9@:%._+~#=]{1,256}\\.[a-zA-Z0-9()]{1,6}\\b([-a-zA-Z0-9()@:%_+.~#?&/=]*)"
)
View Source
const (
	RegexShortLinkToken = "[\\w\\-]{4,64}"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type CreateShortLink struct {
	Token string `json:"token"`
	Url   string `json:"url"`
}
type DeleteShortLink struct {
	Token string `json:"token"`
}

type SendNotification

type SendNotification struct {
	Message string `json:"message"`
}
type ShortLink struct {
	Token string `json:"token"`
	Url   string `json:"url"`
}
type UpdateShortLink struct {
	Token string `json:"token"`
	Url   string `json:"url"`
}

type ValidateShortLinkToken added in v0.8.0

type ValidateShortLinkToken struct {
	Token string `json:"token"`
}

type ValidateShortLinkUrl added in v0.8.0

type ValidateShortLinkUrl struct {
	Url string `json:"url"`
}

type ValidationResult added in v0.8.0

type ValidationResult struct {
	Success bool
	Message string
}

Jump to

Keyboard shortcuts

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