contributor

package module
v0.0.0-...-b17c96b Latest Latest
Warning

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

Go to latest
Published: May 7, 2022 License: MIT Imports: 15 Imported by: 0

README

Contributor

Contributor is used for the /contribute page. Once a user POSTs an Asian American they want to contribute, a GCP Cloud Function is invoked and will create a pull request.

gcloud beta functions deploy go-http-function \
--gen2 \
--runtime go116 \
--trigger-http \
--entry-point Handle \
--source . \
--allow-unauthenticated

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrBranchAlreadyExists = errors.New("branch already exists")
	ErrFileAlreadyExists   = errors.New("file already exists")
)

Functions

This section is empty.

Types

type DefaultPullRequestService

type DefaultPullRequestService struct {
	// contains filtered or unexported fields
}

func NewPullRequestService

func NewPullRequestService(ctx context.Context, token string) DefaultPullRequestService

type Handler

type Handler struct {
	PullRequestService PullRequestService
}

func (Handler) Handle

func (h Handler) Handle(w http.ResponseWriter, r *http.Request)

Handle is the signature required for GCP Cloud function.

type PullRequestService

type PullRequestService interface {
	// contains filtered or unexported methods
}

Jump to

Keyboard shortcuts

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