helper

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2022 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Helper

type Helper int

func (Helper) Error

func (Helper) Error(c codes.Code, msg string) error

func (Helper) Errorf

func (Helper) Errorf(c codes.Code, format string, a ...interface{}) error

func (Helper) ServeContent

func (Helper) ServeContent(stream grpc.ServerStream, contentType string,
	modtime time.Time,
	content io.ReadSeeker,
) error

ServeContent make stream google.api.HttpBody compatible http download, copy from http.ServeContent.

func (Helper) ServeFile

func (h Helper) ServeFile(stream grpc.ServerStream, name string) error

func (Helper) ServeMessage

func (Helper) ServeMessage(ctx context.Context, modtime time.Time,
	response func(nobody bool) error,
) (e error)

ServeMessage .

func (Helper) ServeName

func (h Helper) ServeName(stream grpc.ServerStream, name string,
	modtime time.Time,
	content io.ReadSeeker,
) error

Jump to

Keyboard shortcuts

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