api

package
v0.0.0-...-0e2b5c9 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrClientRequired     = status.Errorf(codes.InvalidArgument, "a client is required.")
	ErrClientNameRequired = status.Errorf(codes.InvalidArgument, "a client name is required.")
)

Request parameters validation errors

Functions

This section is empty.

Types

type GRPCServer

type GRPCServer interface {
	pb.C2Server
	ListenAndServe(ctx context.Context) error
}

GRPCServer defines available endpoints on a GRPC server

func NewGRPCServer

func NewGRPCServer(scfg config.ServerCfg, e4Service services.E4, eventDispatcher events.Dispatcher, logger log.FieldLogger) GRPCServer

NewGRPCServer creates a new server over GRPC

type HTTPServer

type HTTPServer interface {
	ListenAndServe(ctx context.Context) error
}

HTTPServer defines methods available on a C2 HTTP server

func NewHTTPServer

func NewHTTPServer(scfg config.HTTPServerCfg, grpcCertPath string, logger log.FieldLogger) HTTPServer

NewHTTPServer creates a new http server for C2

Jump to

Keyboard shortcuts

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