kontrakto

package module
v0.11.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()@:%_+.~#?&/=]*)"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type CreateShortLink struct {
	Token    string `json:"token"`
	Location string `json:"location"`
}

type CreateShortLinkResult added in v0.9.0

type CreateShortLinkResult struct {
	Success            bool
	Message            string
	TokenValidation    ValidationResult
	LocationValidation ValidationResult
	ShortLink          ShortLink
}
type DeleteShortLink struct {
	WithToken string `json:"with_token"`
}

type Error added in v0.11.0

type Error struct {
	Message string `json:"message"`
}
type GetShortLink struct {
	WithToken string `json:"with_token"`
}
type PaginateShortLinks struct {
	Paginator `json:"paginator"`
}

type Paginator added in v0.10.0

type Paginator struct {
	Offset int `json:"offset"`
	Limit  int `json:"limit"`
}

type SendNotification

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

type ShortLinksPagination added in v0.10.0

type ShortLinksPagination struct {
	Items []ShortLink `json:"items"`
}
type UpdateShortLink struct {
	WithToken string `json:"with_token"`
	Location  string `json:"location"`
}

type UpdateShortLinkResult added in v0.9.0

type UpdateShortLinkResult struct {
	Success            bool
	Message            string
	LocationValidation ValidateShortLinkLocation
	ShortLink          ShortLink
}

type ValidateShortLinkLocation added in v0.9.0

type ValidateShortLinkLocation struct {
	Location string `json:"location"`
}

type ValidateShortLinkToken added in v0.8.0

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

type ValidationResult added in v0.8.0

type ValidationResult struct {
	Success bool   `json:"success"`
	Message string `json:"message"`
}

Jump to

Keyboard shortcuts

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