Documentation
¶
Index ¶
- Variables
- func HandleError(sp coder.RStackFrame, errNo coder.Error, conn *websocket.Conn, ...)
- func WithAddressClient(addr string) clientOption
- func WithAddressServer(adds ...string) serverOption
- func WithCallOnErr(fn func(err error)) clientOption
- func WithCustomLogger(logger bilog.Logger) serverOption
- func WithCustomLoggerClient(logger bilog.Logger) clientOption
- func WithDefaultClient() clientOption
- func WithDefaultServer() serverOption
- func WithTlsClient(tlsC *tls.Config) clientOption
- func WithTlsServer(tlsC *tls.Config) serverOption
- type Client
- type ClientConfig
- type CustomLogger
- type ElemMeta
- type Server
- type ServerConfig
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrJsonUnMarshal = coder.NewError("json unmarshal failed", "") ErrMethodNoRegister = coder.NewError("method no register", "") ErrElemTypeNoRegister = coder.NewError("elem type no register : ", "") ErrServer = coder.NewError("server error: ", "") ErrCallArgsType = coder.NewError("call arguments type error : ", "") Nil = coder.NewError("the error is nil", "") )
Functions ¶
func HandleError ¶
func WithAddressClient ¶
func WithAddressClient(addr string) clientOption
func WithAddressServer ¶
func WithAddressServer(adds ...string) serverOption
func WithCallOnErr ¶
func WithCallOnErr(fn func(err error)) clientOption
func WithCustomLogger ¶
func WithCustomLoggerClient ¶
func WithDefaultClient ¶
func WithDefaultClient() clientOption
func WithDefaultServer ¶
func WithDefaultServer() serverOption
func WithTlsClient ¶
func WithTlsServer ¶
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
type ClientConfig ¶
type CustomLogger ¶
type CustomLogger string
func (CustomLogger) Debug ¶
func (c CustomLogger) Debug(format string, v ...interface{})
func (CustomLogger) Error ¶
func (c CustomLogger) Error(format string, v ...interface{})
func (CustomLogger) Info ¶
func (c CustomLogger) Info(format string, v ...interface{})
func (CustomLogger) SetLevel ¶
func (c CustomLogger) SetLevel(lvl int)
func (CustomLogger) Warn ¶
func (c CustomLogger) Warn(format string, v ...interface{})
Source Files
¶
Directories
¶
| Path | Synopsis |
|---|---|
|
example
|
|
|
littlerpc/hello_world
command
|
|
|
littlerpc/multi_instance
command
@Generator : littlerpc-generator @CreateTime : 2022-06-10 16:24:21.8771 +0800 CST m=+0.000615892 @Author : littlerpc-generator
|
@Generator : littlerpc-generator @CreateTime : 2022-06-10 16:24:21.8771 +0800 CST m=+0.000615892 @Author : littlerpc-generator |
|
littlerpc/proxy
command
@Generator : littlerpc-generator @CreateTime : 2022-06-10 16:40:12.356408 +0800 CST m=+0.002272427 @Author : littlerpc-generator
|
@Generator : littlerpc-generator @CreateTime : 2022-06-10 16:40:12.356408 +0800 CST m=+0.002272427 @Author : littlerpc-generator |
|
littlerpc/quick_start
command
|
|
|
std-rpc
command
|
|
|
internal
|
|
|
pool
Package pool littlerpc自带的goroutine池
|
Package pool littlerpc自带的goroutine池 |
|
plugins
|
|
|
ddio
module
|
|
|
limiter
module
|
|
|
metrics/prometheus
module
|
|
Click to show internal directories.
Click to hide internal directories.