Versions in this module Expand all Collapse all v1 v1.0.1 Dec 6, 2024 v1.0.0 Dec 4, 2024 Changes in this version + var MultiRecvErr = yrpc.NewStatus(yrpc.CodeInternalServerError, "auth-checker plugin usage is incorrect", ...) + var MultiSendErr = yrpc.NewStatus(yrpc.CodeWriteFailed, "auth-bearer plugin usage is incorrect", ...) + func NewBearerPlugin(fn Bearer, infoSetting ...yrpc.MessageSetting) yrpc.Plugin + func NewCheckerPlugin(fn Checker, retSetting ...yrpc.MessageSetting) yrpc.Plugin + type Bearer func(sess Session, fn SendOnce) *yrpc.Status + type Checker func(sess Session, fn RecvOnce) (ret interface{}, stat *yrpc.Status) + type RecvOnce func(infoRecv interface{}) *yrpc.Status + type SendOnce func(info, retRecv interface{}) *yrpc.Status + type Session interface + LocalAddr func() net.Addr + Peer func() yrpc.Peer + RemoteAddr func() net.Addr + SetID func(newID string) + Swap func() goutil.Map