Documentation ¶
Index ¶
- Constants
- func NewGrpcClientConn(c proto.Tunnel_OnConnectClient, conn *grpc.ClientConn) io.ReadWriteCloser
- func NewGrpcServerConn(conn proto.Tunnel_OnConnectServer) io.ReadWriteCloser
- func VerifyTokenFromContext(ctx context.Context, token string) error
- type Client
- type GrpcClientConn
- type GrpcServerConn
- type Server
Constants ¶
View Source
const ( DialTimeout = 5 * time.Second ConnectTimeout = 5 * time.Second BackoffMaxDelay = 3 * time.Second InitialWindowSize = 1 << 30 InitialConnWindowSize = 1 << 30 KeepAliveTimeout = time.Duration(3) * time.Second KeepAliveTime = time.Duration(10) * time.Second MaxRecvMsgSize = 1 << 30 MaxSendMsgSize = 1 << 30 ReadBufferSize = 1 << 10 WriteBufferSize = 1 << 10 MaxIdle = 8 MaxActive = 64 MaxConcurrentStreams = 64 )
Variables ¶
This section is empty.
Functions ¶
func NewGrpcClientConn ¶ added in v1.0.0
func NewGrpcClientConn(c proto.Tunnel_OnConnectClient, conn *grpc.ClientConn) io.ReadWriteCloser
func NewGrpcServerConn ¶ added in v1.0.0
func NewGrpcServerConn(conn proto.Tunnel_OnConnectServer) io.ReadWriteCloser
Types ¶
type GrpcClientConn ¶ added in v1.0.0
type GrpcClientConn struct {
// contains filtered or unexported fields
}
func (*GrpcClientConn) Close ¶ added in v1.0.0
func (conn *GrpcClientConn) Close() error
type GrpcServerConn ¶ added in v1.0.0
type GrpcServerConn struct {
// contains filtered or unexported fields
}
func (*GrpcServerConn) Close ¶ added in v1.0.0
func (conn *GrpcServerConn) Close() error
type Server ¶
type Server struct { proto.UnimplementedTunnelServer // contains filtered or unexported fields }
func (*Server) ListenAndServe ¶ added in v0.1.7
Click to show internal directories.
Click to hide internal directories.