server

package
v0.0.0-...-e5c0508 Latest Latest
Warning

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

Go to latest
Published: May 19, 2023 License: AGPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckAPIKey

func CheckAPIKey(c *gin.Context)

func Serve

func Serve() error

Types

type Share

type Share struct {
	ContentType string
	Content     []byte
}

type ShareNotFoundError

type ShareNotFoundError struct{}

func (*ShareNotFoundError) Error

func (e *ShareNotFoundError) Error() string

type ShareStore

type ShareStore struct {
	ShareMap map[string]Share
	// contains filtered or unexported fields
}

func NewShareStore

func NewShareStore() *ShareStore

func (*ShareStore) AddShare

func (ss *ShareStore) AddShare(contentType string, content []byte) (string, error)

func (*ShareStore) DeleteShare

func (ss *ShareStore) DeleteShare(id string)

func (*ShareStore) GetShare

func (ss *ShareStore) GetShare(id string) (Share, error)

Jump to

Keyboard shortcuts

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