Versions in this module Expand all Collapse all v1 v1.0.0 Dec 9, 2024 Changes in this version + const GunService_Tun_FullMethodName + var File_transport_internet_grpc_encoding_stream_proto protoreflect.FileDescriptor + var GunService_ServiceDesc = grpc.ServiceDesc + func RegisterGunServiceServer(s grpc.ServiceRegistrar, srv GunServiceServer) + func RegisterGunServiceServerX(s *grpc.Server, srv GunServiceServer, name string) + func ServerDesc(name string) grpc.ServiceDesc + type GunConn struct + func NewGunConn(service GunService, over context.CancelFunc) *GunConn + func (*GunConn) SetDeadline(time.Time) error + func (*GunConn) SetReadDeadline(time.Time) error + func (*GunConn) SetWriteDeadline(time.Time) error + func (c *GunConn) Close() error + func (c *GunConn) LocalAddr() net.Addr + func (c *GunConn) Read(b []byte) (n int, err error) + func (c *GunConn) RemoteAddr() net.Addr + func (c *GunConn) Write(b []byte) (n int, err error) + type GunService interface + Context func() context.Context + Recv func() (*Hunk, error) + Send func(*Hunk) error + type GunServiceClient interface + Tun func(ctx context.Context, opts ...grpc.CallOption) (grpc.BidiStreamingClient[Hunk, Hunk], error) + func NewGunServiceClient(cc grpc.ClientConnInterface) GunServiceClient + type GunServiceClientX interface + Tun func(ctx context.Context, opts ...grpc.CallOption) (GunService_TunClient, error) + TunCustomName func(ctx context.Context, name string, opts ...grpc.CallOption) (GunService_TunClient, error) + type GunServiceServer interface + Tun func(grpc.BidiStreamingServer[Hunk, Hunk]) error + type GunService_TunClient = grpc.BidiStreamingClient[Hunk, Hunk] + type GunService_TunServer = grpc.BidiStreamingServer[Hunk, Hunk] + type Hunk struct + Data []byte + func (*Hunk) Descriptor() ([]byte, []int) + func (*Hunk) ProtoMessage() + func (x *Hunk) GetData() []byte + func (x *Hunk) ProtoReflect() protoreflect.Message + func (x *Hunk) Reset() + func (x *Hunk) String() string + type UnimplementedGunServiceServer struct + func (UnimplementedGunServiceServer) Tun(grpc.BidiStreamingServer[Hunk, Hunk]) error + type UnsafeGunServiceServer interface