server

package
v0.0.0-...-441d1d1 Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2019 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Opts

type Opts struct {
	GRPCMaxMsgSize           int64  `long:"max-msg-size" description:"max msg size in bytes"`
	GRPCMaxConcurrentStreams uint32 `long:"max-concurrent-streams" description:"max number of grpc streams"`
	Port                     int32  `long:"port" default:"8091" description:"port used by server"`
	DisableTLS               bool   `long:"disable-tls" description:"Disable TLS encyrption"`
	CertFile                 string `long:"certfile" description:"Certfile location" default:"/usr/local/logrhythm/winston/winston.pem"`
	CertKey                  string `long:"certkey" description:"certkey location" default:"/usr/local/logrhythm/winston/winston.key"`
}

Opts are the options for the SQLD server

type PlainSQLD

type PlainSQLD struct {
	Opts Opts
	// contains filtered or unexported fields
}

PlainSQLD runs the PlainSQLD grpc API server

func NewPlainSQLD

func NewPlainSQLD(opts Opts) *PlainSQLD

NewPlainSQLD creates a new grpc server

func (*PlainSQLD) Close

func (p *PlainSQLD) Close() error

Close stop the server

func (*PlainSQLD) Echo

func (p *PlainSQLD) Echo(ctx context.Context, req *rq.Request) (*rq.Request, error)

Echo returns an echo of what you send it

func (*PlainSQLD) Execute

func (p *PlainSQLD) Execute(ctx context.Context, req *rq.Request) (*rq.Results, error)

func (*PlainSQLD) Start

func (p *PlainSQLD) Start()

Start initialized the server in a background thread

Jump to

Keyboard shortcuts

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