files

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2019 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package files contains the HTTP server for files services.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(
	images Images,
) *remotohttp.Server

New makes a new remotohttp.Server with the specified services registered.

func RegisterImagesServer

func RegisterImagesServer(server *remotohttp.Server, service Images)

RegisterImagesServer registers a Images with a remotohttp.Server.

func Run

func Run(addr string,
	images Images,
) error

Run is the simplest way to run the services.

Types

type FlipRequest

type FlipRequest struct {
	Image remototypes.File `json:"image"`
}

FlipRequest is the request for Images.Flip.

type Images

type Images interface {
	Flip(context.Context, *FlipRequest) (*remototypes.FileResponse, error)
}

Images provides image services.

Jump to

Keyboard shortcuts

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