endpoint

package
v0.0.0-...-e8ec618 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2023 License: Unlicense Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Endpoint

type Endpoint interface {
	Run(r Request) (Response, error)
}

type Request

type Request struct {
	DataId int
}

type Response

type Response struct {
	UserID  int
	DataID  int
	Version int
	Content string
}

type RetrieverEndpoint

type RetrieverEndpoint struct {
	Service service.Service
}

func (*RetrieverEndpoint) Run

func (re *RetrieverEndpoint) Run(r Request) (Response, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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