handler

package
Version: v0.0.0-...-1730ba2 Latest Latest
Warning

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

Go to latest
Published: May 18, 2018 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package handler has a set of handlers for different purposes, like gRPC and regular HTTP

Package handler has a set of handlers for different purposes, like gRPC and regular HTTP

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterGrpcHandler

func RegisterGrpcHandler(s *grpc.Server, storage sysstate.Storage)

RegisterGrpcHandler self registers this handler with the GRPC server

Types

type QaclanaGrpcBackend

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

QaclanaGrpcBackend is a representation of the operations available remotely

func (*QaclanaGrpcBackend) Receive

func (s *QaclanaGrpcBackend) Receive(in *qaclana.Empty, stream qaclana.SystemStateService_ReceiveServer) error

Receive updates to the system state, retrieving first the current state and blocking until further updates are available

type SysState

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

SysState represents the system state HTTP handler

func NewSysStateHandler

func NewSysStateHandler(storage sysstate.Storage) *SysState

NewSysStateHandler creates a new system state HTTP handler

func (*SysState) ServeHTTP

func (s *SysState) ServeHTTP(w http.ResponseWriter, r *http.Request)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL