Documentation
¶
Index ¶
- func NewConn(ctx context.Context, target string, cfg *ConnectionConfig) (*quic.Conn, error)
- func NewTransport(addr string, logger *zap.Logger) (*quic.Transport, error)
- type Client
- type ClientConfig
- type Codec
- type ConnectionConfig
- type GOBCodec
- type Server
- func (s *Server) Codec() string
- func (s *Server) RegisterService(name string, service any)
- func (s *Server) Serve(ctx context.Context) error
- func (s *Server) WithCodec(codec Codec) *Server
- func (s *Server) WithLogger(logger *zap.Logger) *Server
- func (s *Server) WithQUICConfig(quicConfig *quic.Config) *Server
- func (s *Server) WithTLSConfig(tlsConfig *tls.Config) *Server
- func (s *Server) WithTransport(transport *quic.Transport) *Server
- type ServerConfig
- type ZapResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func NewClient ¶
func NewClient(cfg *ClientConfig) *Client
type ClientConfig ¶
type ConnectionConfig ¶
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
func NewServer ¶
func NewServer(cfg *ServerConfig) *Server
func (*Server) RegisterService ¶
type ServerConfig ¶
type ZapResponse ¶
type ZapResponse struct {
Value any
}
Click to show internal directories.
Click to hide internal directories.