web

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2026 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Repository

type Repository interface {
	Find(id string) (*WebData, bool)
	FindByOwner(owner string) (*WebData, bool)
	Resolve(owner string, webData *WebData) *WebData
	Delete(token *WebData) *WebData
}

type WebData

type WebData struct {
	Id        string            `json:"id"`
	Timestamp int64             `json:"timestamp"`
	Data      map[string]string `json:"data"`
	Modified  int64             `json:"modified"`
	Owner     string            `json:"owner"`
}

func EmptyWebData

func EmptyWebData(owner string) *WebData

func (WebData) PersistenceId

func (r WebData) PersistenceId() string

Jump to

Keyboard shortcuts

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