Documentation ¶
Index ¶
- func RegisterGunServiceServer(s *grpc.Server, srv GunServiceServer)
- func RegisterGunServiceServerX(s *grpc.Server, srv GunServiceServer, name string)
- func ServerDesc(name string) grpc.ServiceDesc
- type GunServiceClient
- type GunServiceClientX
- type GunServiceServer
- type GunService_TunClient
- type GunService_TunDatagramClient
- type GunService_TunDatagramServer
- type GunService_TunServer
- type Hunk
- func (*Hunk) Descriptor() ([]byte, []int)
- func (m *Hunk) GetData() []byte
- func (*Hunk) ProtoMessage()
- func (m *Hunk) Reset()
- func (m *Hunk) String() string
- func (m *Hunk) XXX_DiscardUnknown()
- func (m *Hunk) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Hunk) XXX_Merge(src proto.Message)
- func (m *Hunk) XXX_Size() int
- func (m *Hunk) XXX_Unmarshal(b []byte) error
- type UnimplementedGunServiceServer
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_TunServer ¶
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) ProtoMessage ¶
func (*Hunk) ProtoMessage()
func (*Hunk) XXX_DiscardUnknown ¶
func (m *Hunk) XXX_DiscardUnknown()
func (*Hunk) XXX_Unmarshal ¶
type UnimplementedGunServiceServer ¶
type UnimplementedGunServiceServer struct { }
UnimplementedGunServiceServer can be embedded to have forward compatible implementations.
func (*UnimplementedGunServiceServer) Tun ¶
func (*UnimplementedGunServiceServer) Tun(srv GunService_TunServer) error
func (*UnimplementedGunServiceServer) TunDatagram ¶
func (*UnimplementedGunServiceServer) TunDatagram(srv GunService_TunDatagramServer) error
Click to show internal directories.
Click to hide internal directories.