stone

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2021 License: Apache-2.0, Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HandleWebHook

func HandleWebHook(w http.ResponseWriter, r *http.Request)

func Signature

func Signature(seed string, data []byte) (sum string)

Types

type Payload

type Payload struct {
	Zen        string     `json:"zen,omitempty"`
	Ref        string     `json:"ref,omitempty"`
	RefType    string     `json:"ref_type,omitempty"`
	Repository Repository `json:"repository,omitempty"`
}

func (*Payload) Dump

func (p *Payload) Dump() (b []byte, err error)

func (*Payload) Load

func (p *Payload) Load(b []byte) (err error)

func (*Payload) String

func (p *Payload) String() (s string)

type Repository

type Repository struct {
	Name     string `json:"name,omitempty"`
	FullName string `json:"full_name,omitempty"`
	CloneUrl string `json:"clone_url,omitempty"`
}

Jump to

Keyboard shortcuts

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