server

package
v0.0.0-...-4f8e3ed Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2020 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cursor

type Cursor interface {
	Next(ctx context.Context) (interface{}, error)
	Skip(ctx context.Context, n int32) error
	Position(ctx context.Context) (int32, error)
	Close(ctx context.Context) error
}

type QueryHandler

type QueryHandler func(collection string, q bson.M, fields bson.M) (Cursor, error)

type Server

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

func (*Server) Listen

func (s *Server) Listen(ln net.Listener) error

func (*Server) ListenAddr

func (s *Server) ListenAddr(addr string) error

Jump to

Keyboard shortcuts

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