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)

Source Files