service

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2020 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Application

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

Application represents a badge generation application

func New

func New(appInfo Info) (*Application, error)

New creates and returns a new instance of Application.

func (*Application) Start

func (app *Application) Start() error

Start starts the application

type BadgeService

type BadgeService interface {
	http.Handler
}

BadgeService represents a badge service

func NewStaticService

func NewStaticService(configuration *config.Config,
	logger *zap.Logger) (BadgeService, error)

NewStaticService returns a HTTP handler for the static badge service

type GitProviderService

type GitProviderService interface {
	BadgeService
	// contains filtered or unexported methods
}

GitProviderService represents a badge service for git providers

func NewBitbucketService

func NewBitbucketService(configuration *config.Config,
	logger *zap.Logger) (GitProviderService, error)

NewBitbucketService returns a HTTP handler for the Bitbucket badge service

func NewGithubService

func NewGithubService(configuration *config.Config,
	logger *zap.Logger) (GitProviderService, error)

NewGithubService returns a HTTP handler for the Github badge service

func NewGitlabService

func NewGitlabService(configuration *config.Config, logger *zap.Logger) (GitProviderService, error)

NewGitlabService returns a HTTP handler for the Gitlab badge service

type Info

type Info struct {
	ExecutableName string
	ShortName      string
	LongName       string
	Version        string
	GitHash        string
}

Info contains build information about the application

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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