Back to

Package httpclient

Latest Go to latest

The highest tagged major version is .

Published: Nov 23, 2019 | License: BSD-3-Clause | Module:


Package httpclient contains change.Service implementation over HTTP.


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.

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)

Package Files

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier