server

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: May 27, 2016 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package server provides the demonstration unsecure server.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Listen

func Listen(addrPort string, fn func(*api.Log)) error

Listen with gRPG service

Types

type ByTimestamp

type ByTimestamp []*api.Log

ByTimestamp sorting interface

func (ByTimestamp) Len

func (l ByTimestamp) Len() int

func (ByTimestamp) Less

func (l ByTimestamp) Less(i, j int) bool

func (ByTimestamp) Swap

func (l ByTimestamp) Swap(i, j int)

type Server

type Server struct{}

func (*Server) SendLog

func (s *Server) SendLog(ctx context.Context, in *api.Log) (*api.Ack, error)

Sendlog Handler

Handle incoming log messages

Jump to

Keyboard shortcuts

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