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)