api

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type API

type API struct {
	*common.Inject
}

func (*API) EventInvoke

func (x *API) EventInvoke(w http.ResponseWriter, req *http.Request)

func (*API) Fetch

func (x *API) Fetch(ctx context.Context) (err error)

func (*API) Sync

func (x *API) Sync(ctx context.Context, task Task) (err error)

type Task added in v0.1.0

type Task struct {
	Source string `json:"source"`
	Target string `json:"target"`
}

Jump to

Keyboard shortcuts

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