httpclient

package
v0.0.0-...-1161aef Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2019 License: BSD-3-Clause Imports: 9 Imported by: 1

Documentation

Overview

Package httpclient contains change.Service implementation over HTTP.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewChange

func NewChange(httpClient *http.Client, scheme, host string) change.Service

NewChange creates a client that implements change.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 Change

type Change struct {
	change.Service // For the rest of the methods that are not implemented.
	// contains filtered or unexported fields
}

Change implements change.Service remotely over HTTP. Use NewChange for creation; zero value of Change is unfit for use.

func (*Change) EditComment

func (c *Change) EditComment(ctx context.Context, repo string, id uint64, cr change.CommentRequest) (change.Comment, error)

Jump to

Keyboard shortcuts

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