gun_proto

package
v0.0.0-...-5f1f6bc Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 3, 2023 License: AGPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterGunServiceServer

func RegisterGunServiceServer(s *grpc.Server, srv GunServiceServer)

func RegisterGunServiceServerX

func RegisterGunServiceServerX(s *grpc.Server, srv GunServiceServer, name string)

func ServerDesc

func ServerDesc(name string) grpc.ServiceDesc

Types

type GunServiceClient

type GunServiceClient interface {
	Tun(ctx context.Context, opts ...grpc.CallOption) (GunService_TunClient, error)
	TunDatagram(ctx context.Context, opts ...grpc.CallOption) (GunService_TunDatagramClient, error)
}

GunServiceClient is the client API for GunService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewGunServiceClient

func NewGunServiceClient(cc *grpc.ClientConn) GunServiceClient

type GunServiceClientX

type GunServiceClientX interface {
	TunCustomName(ctx context.Context, name string, opts ...grpc.CallOption) (GunService_TunClient, error)
	Tun(ctx context.Context, opts ...grpc.CallOption) (GunService_TunClient, error)
	TunDatagram(ctx context.Context, opts ...grpc.CallOption) (GunService_TunDatagramClient, error)
}

type GunServiceServer

type GunServiceServer interface {
	Tun(GunService_TunServer) error
	TunDatagram(GunService_TunDatagramServer) error
}

GunServiceServer is the server API for GunService service.

type GunService_TunClient

type GunService_TunClient interface {
	Send(*Hunk) error
	Recv() (*Hunk, error)
	grpc.ClientStream
}

type GunService_TunDatagramClient

type GunService_TunDatagramClient interface {
	Send(*Hunk) error
	Recv() (*Hunk, error)
	grpc.ClientStream
}

type GunService_TunDatagramServer

type GunService_TunDatagramServer interface {
	Send(*Hunk) error
	Recv() (*Hunk, error)
	grpc.ServerStream
}

type GunService_TunServer

type GunService_TunServer interface {
	Send(*Hunk) error
	Recv() (*Hunk, error)
	grpc.ServerStream
}

type Hunk

type Hunk struct {
	Data                 []byte   `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Hunk) Descriptor

func (*Hunk) Descriptor() ([]byte, []int)

func (*Hunk) GetData

func (m *Hunk) GetData() []byte

func (*Hunk) ProtoMessage

func (*Hunk) ProtoMessage()

func (*Hunk) Reset

func (m *Hunk) Reset()

func (*Hunk) String

func (m *Hunk) String() string

func (*Hunk) XXX_DiscardUnknown

func (m *Hunk) XXX_DiscardUnknown()

func (*Hunk) XXX_Marshal

func (m *Hunk) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Hunk) XXX_Merge

func (m *Hunk) XXX_Merge(src proto.Message)

func (*Hunk) XXX_Size

func (m *Hunk) XXX_Size() int

func (*Hunk) XXX_Unmarshal

func (m *Hunk) XXX_Unmarshal(b []byte) error

type UnimplementedGunServiceServer

type UnimplementedGunServiceServer struct {
}

UnimplementedGunServiceServer can be embedded to have forward compatible implementations.

func (*UnimplementedGunServiceServer) Tun

func (*UnimplementedGunServiceServer) TunDatagram

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL