Documentation ¶
Index ¶
- Constants
- func DeregisterClient(name string)
- func DeregisterServer(name string)
- func IsIpPortAddr(addr string) (ip string, port int, ok bool)
- func NewBuilder() container.StandardBuilder
- func RegisterClient(resolver ClientResover)
- func RegisterServer(resolver ServerResover)
- type Body
- type Client
- type ClientResover
- type Config
- type Options
- type RequestOption
- func WithContentType(contentType string) RequestOption
- func WithHeaders(header map[string]string) RequestOption
- func WithMethod(method string) RequestOption
- func WithQuery(query string) RequestOption
- func WithSourceName(sourceName string) RequestOption
- func WithWaitForReady(waitForReady bool) RequestOption
- func WithXRequestID(requestID string) RequestOption
- type Server
- type ServerResover
- type StandardRPC
Constants ¶
View Source
const TypeNode = "rpcs"
Variables ¶
This section is empty.
Functions ¶
func NewBuilder ¶
func NewBuilder() container.StandardBuilder
func RegisterClient ¶ added in v0.3.0
func RegisterClient(resolver ClientResover)
Register 注册配置文件适配器
func RegisterServer ¶ added in v0.3.0
func RegisterServer(resolver ServerResover)
Register 注册配置文件适配器
Types ¶
type ClientResover ¶ added in v0.3.0
type ClientResover interface { Name() string Resolve(name string, setting config.Config) (Client, error) }
ClientResover 定义配置文件转换方法
type RequestOption ¶
type RequestOption func(*Options)
func WithContentType ¶
func WithContentType(contentType string) RequestOption
func WithHeaders ¶
func WithHeaders(header map[string]string) RequestOption
func WithMethod ¶ added in v0.5.1
func WithMethod(method string) RequestOption
func WithQuery ¶ added in v0.5.1
func WithQuery(query string) RequestOption
func WithSourceName ¶ added in v0.2.6
func WithSourceName(sourceName string) RequestOption
func WithWaitForReady ¶
func WithWaitForReady(waitForReady bool) RequestOption
func WithXRequestID ¶
func WithXRequestID(requestID string) RequestOption
type Server ¶ added in v0.3.0
type ServerResover ¶ added in v0.3.0
type ServerResover interface { Name() string Resolve(name string, router *engine.RouterGroup, cfg config.Config, opts ...engine.Option) (Server, error) }
ServerResover 定义配置文件转换方法
type StandardRPC ¶
Click to show internal directories.
Click to hide internal directories.