Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
FilterSkillName = config.TypeNameOf((*GrpcFilter)(nil))
)
Functions ¶
func DoGrpcFilter ¶
Types ¶
type GrpcFilter ¶
type GrpcFilter interface {
DoGrpcFilter(ctx IGrpcContext, next eocontext.IChain) (err error)
}
type IGrpcContext ¶
type IGrpcContext interface { eocontext.EoContext // Request 获取原始请求 Request() IRequest // Proxy 获取待转发请求 Proxy() IRequest // Response 获取服务端响应内容 Response() IResponse // EnableTls 是否开启tls认证 EnableTls(bool) // InsecureCertificateVerify 是否跳过证书检查 InsecureCertificateVerify(bool) // Invoke grpc调用 Invoke(node eocontext.INode, timeout time.Duration) error FastFinish() error }
type IHeader ¶
type IHeader interface { IHeaderReader IHeaderWriter }
type IHeaderReader ¶
type IHeaderWriter ¶
type IMessageDescriptor ¶
type IMessageDescriptor interface { }
type ITrailer ¶
type ITrailer interface { IHeaderReader IHeaderWriter }
Click to show internal directories.
Click to hide internal directories.