invoke

package
v0.0.10 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Entry

type Entry struct {
	Id       string        `json:"id"`
	Request  EntryRequest  `json:"request"`
	Response EntryResponse `json:"response"`
}

type EntryRequest

type EntryRequest struct {
	Method  string              `json:"method"`
	Url     string              `json:"url"`
	Headers map[string][]string `json:"headers"`
	Body    string              `json:"body"`
	Started int64               `json:"started"`
}

type EntryResponse

type EntryResponse struct {
	Status   int                 `json:"status"`
	Headers  map[string][]string `json:"headers"`
	Body     string              `json:"body"`
	Received int64               `json:"received"`
}

type InvokeSrv

type InvokeSrv struct {
	// contains filtered or unexported fields
}

func New

func New(repos repository.Repos) InvokeSrv

func (*InvokeSrv) BaseUrl added in v0.0.10

func (srv *InvokeSrv) BaseUrl() string

func (*InvokeSrv) Delete added in v0.0.10

func (srv *InvokeSrv) Delete(id string) error

func (*InvokeSrv) Get

func (srv *InvokeSrv) Get(id string) (Entry, error)

func (*InvokeSrv) Invoke

func (srv *InvokeSrv) Invoke(entry *Entry) error

func (*InvokeSrv) Lifecycle added in v0.0.10

func (srv *InvokeSrv) Lifecycle() error

func (*InvokeSrv) List

func (srv *InvokeSrv) List() ([]Entry, error)

func (*InvokeSrv) NewEntry

func (srv *InvokeSrv) NewEntry(method string, path string) Entry

func (*InvokeSrv) Save

func (srv *InvokeSrv) Save(entry Entry) error

Jump to

Keyboard shortcuts

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