service

package
v0.0.0-...-416989a Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2021 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Repo

type Repo struct{ UserURL, Domain, Message, Path string }

Repo contains the data that will be rendered in the repo redirect template

type Service

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

Service contains the required data needed for hosting a custom go import domain API

func New

func New(userURL, domain string) *Service

New creates and returns a new Service struct reference using the passed params

func (*Service) Echo

func (s *Service) Echo() *echo.Echo

Echo creates and returns a fully configured echo router that is able to proxy git repos for a user

type Template

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

Template is a renderer that contains html templates

func (*Template) Render

func (t *Template) Render(w io.Writer, name string, data interface{},
	c echo.Context) error

Render makes the Template type satisfy the echo.Renderer interface

Jump to

Keyboard shortcuts

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