reader

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: May 25, 2022 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Filters

func Filters() *filter.Filters

Filters returns a reader filter singleton

func HandleRead

func HandleRead(srv Service, filters ...filter.Filter) shared2.Handle

HandleRead handles read request

Types

type Record

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

Record represents a record

func NewRecord

func NewRecord(proto *gtly.Proto, columns []string, columnTypes []dsc.ColumnType) *Record

NewRecord creates a record

func (*Record) Object

func (r *Record) Object() (*gtly.Object, error)

Object returns record object

func (*Record) Reset

func (r *Record) Reset()

Reset reset record

type Request

type Request struct {
	contract.Request
}

Request represents read request

type Response

type Response struct {
	contract.Response
}

Response represents

func NewResponse

func NewResponse() *Response

NewResponse creates a response

type Service

type Service interface {
	Read(ctx context.Context, request *Request) *Response
}

Service represents a reader service

func New

func New(ctx context.Context, config *config2.Config) (Service, error)

New creates a service

Jump to

Keyboard shortcuts

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