service

package
v2.1.2+incompatible Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2019 License: Apache-2.0 Imports: 7 Imported by: 1

Documentation

Overview

Package service is not included in the partners build: it's not needed in the partner apps, and the syscall.Stat* functions inside the models.Volume code cause the build to fail on Windows.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type VolumeService

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

VolumeService keeps track of the space available to workers processing APTrust and DPN bags.

func NewVolumeService

func NewVolumeService(port int, logger *logging.Logger) *VolumeService

NewVolumeService creates a new VolumeService object to track the amount of available space and claimed space on locally mounted volumes.

func (*VolumeService) Serve

func (service *VolumeService) Serve()

Serve starts an HTTP server, so the VolumeService can respond to requests from the VolumeClient(s). See the VolumeClient for available calls.

Jump to

Keyboard shortcuts

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