http

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2020 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

Client represents http client.

func NewClient

func NewClient(ctx context.Context) (*Client, error)

NewClient returns http client.

type HTTP

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

HTTP implements respository.Action for http request.

func New

func New(cli *Client, ac model.ActionConfig) *HTTP

New returns an action for http.

func (*HTTP) List

func (a *HTTP) List(_ context.Context) (model.ScheduleEvents, error)

List lists schedule events from http action scheduler.

func (*HTTP) Register

func (a *HTTP) Register(_ context.Context, events ...model.ScheduleEvent) error

Register registers schedule events to http action scheduler.

func (*HTTP) Unregister

func (a *HTTP) Unregister(_ context.Context, events ...model.ScheduleEvent) error

Unregister unregisters schedule events from http action scheduler.

Jump to

Keyboard shortcuts

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