link_manager_client

package
v0.0.0-...-8f92032 Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2022 License: MIT Imports: 11 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewClient

func NewClient(baseURL string) (om.LinkManager, error)

Types

type EndpointSet

type EndpointSet struct {
	GetLinksEndpoint   endpoint.Endpoint
	AddLinkEndpoint    endpoint.Endpoint
	UpdateLinkEndpoint endpoint.Endpoint
	DeleteLinkEndpoint endpoint.Endpoint
}
func (s EndpointSet) AddLink(req om.AddLinkRequest) (err error)
func (s EndpointSet) DeleteLink(username string, url string) (err error)
func (s EndpointSet) GetLinks(req om.GetLinksRequest) (result om.GetLinksResult, err error)
func (s EndpointSet) UpdateLink(req om.UpdateLinkRequest) (err error)

type SimpleResponse

type SimpleResponse struct {
	Err string
}

Jump to

Keyboard shortcuts

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