http

package
v0.0.0-...-c858694 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2024 License: MIT Imports: 12 Imported by: 1

Documentation

Overview

Package http contains service implementations over HTTP.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewEvents

func NewEvents(httpClient *http.Client, scheme, host string) events.Service

NewEvents creates a client that implements events.Service remotely over HTTP. If a nil httpClient is provided, http.DefaultClient will be used. scheme and host can be empty strings to target local service.

Types

type Reactions

type Reactions struct{}

Reactions implements reactions.Service remotely over HTTP.

func (Reactions) Get

func (Reactions) Get(ctx context.Context, uri string, id string) ([]reactions.Reaction, error)

func (Reactions) List

func (Reactions) List(ctx context.Context, uri string) (map[string][]reactions.Reaction, error)

func (Reactions) Toggle

type Users

type Users struct{}

Users implements users.Service remotely over HTTP.

func (Users) Edit

func (Users) Get

func (Users) Get(ctx context.Context, user users.UserSpec) (users.User, error)

func (Users) GetAuthenticated

func (Users) GetAuthenticated(ctx context.Context) (users.User, error)

func (Users) GetAuthenticatedSpec

func (Users) GetAuthenticatedSpec(ctx context.Context) (users.UserSpec, error)

Jump to

Keyboard shortcuts

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