Documentation ¶
Index ¶
- type Helper
- func (Helper) Error(c codes.Code, msg string) error
- func (Helper) Errorf(c codes.Code, format string, a ...interface{}) error
- func (Helper) ServeContent(stream grpc.ServerStream, contentType string, modtime time.Time, ...) error
- func (h Helper) ServeFile(stream grpc.ServerStream, name string) error
- func (Helper) ServeMessage(ctx context.Context, modtime time.Time, response func(nobody bool) error) (e error)
- func (h Helper) ServeName(stream grpc.ServerStream, name string, modtime time.Time, ...) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Helper ¶
type Helper int
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.
Click to show internal directories.
Click to hide internal directories.