interfaces

package
v0.0.0-...-4092974 Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Context

type Context interface {
	echo.Context
	RequestContext() context.Context
	Body() string
	BodyBytes() []byte
	BodyJson() ([]byte, error)
	BodyGJson() (*gjson.Result, error)
	BodyMap() (map[string]interface{}, error)
	JSONBytes(code int, json []byte) error
	JSONString(code int, json string) error
	ParamInt64(name string, defaultValue int64) int64
	QueryParamInt64(name string, defaultValue int64) int64
}

type GRPCClient

type GRPCClient interface {
	entityproto.RPCClient
	Ping() error
}

type ImportClient

type ImportClient entityproto.RPC_ImportClient

type JsonReader

type JsonReader interface {
	Start() error
	Read(index *uint64, key *string, value *json.RawMessage) error
	Close() error
}

type Logger

type Logger interface {
	Panic(i ...interface{})
	Panicf(format string, args ...interface{})
	Error(i ...interface{})
	Errorf(format string, args ...interface{})
	Info(i ...interface{})
	Infof(format string, args ...interface{})
	Fatal(i ...interface{})
	Fatalf(format string, args ...interface{})
}

Jump to

Keyboard shortcuts

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