repository

package
v0.0.0-...-70edb27 Latest Latest
Warning

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

Go to latest
Published: Jan 27, 2020 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Overview

Package repository provides the endpoint to manage repositories.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init(svc *smis.Service, db *sqlx.DB) error

Init initialises the endpoints for the repository

Types

type Handler

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

Handler provides useful variables for the specific endpoint handlers

func New

func New(svc *smis.Service, db *sqlx.DB) *Handler

New returns a new handler

type Payload

type Payload struct {
	Repository *repositorymodel.Repository `json:"repository,omitempty"`
	Error      string                      `json:"error,omitempty"`
}

Payload represents response payload for endpoint

func NewPayload

func NewPayload(repository *repositorymodel.Repository) *Payload

NewPayload returns a new Payload struct

Jump to

Keyboard shortcuts

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