server

package
v0.0.0-...-0490640 Latest Latest
Warning

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

Go to latest
Published: May 16, 2019 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Overview

Author:: Gina Peers <gpeers@chef.io>, Salim Afiune <afiune@chef.io> Copyright:: Copyright 2018, Chef Software Inc.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FromInternalFormatToList

func FromInternalFormatToList(entries []*util.FeedEntry) ([]*automate_feed.FeedEntry, error)

Types

type Server

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

func New

func New(config *config.FeedConfig, conn *relaxting.ES2Backend) *Server

New creates and starts the automate-feed gRPC server

func (*Server) GetFeed

TODO: @gcp refactor so that param validations & resulting grpc errors thrown here TODO: @gcp consistent behavior on err w/r/t returning either empty result set or nil

func (*Server) GetFeedTimeline

GetFeedTimeline - feed timeline consists of multiple lines, one for each type of action: create = 2 update = 1 delete = 0. This function gets the data for each line of the feed timeline (the "guitar strings" graph).

---------------------------------------------------------------------------- | Jan 28 | Jan 29 | Jan 30 | |_____________b__________|________________________|_____________i__________|'create' |________________________|_____________c__________|________________________|'update' |________________________|________________________|________________________|'delete' ----------------------------------------------------------------------------

func (*Server) HandleEvent

Jump to

Keyboard shortcuts

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