steno

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2020 License: Apache-2.0 Imports: 5 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterStenographerServer

func RegisterStenographerServer(s *grpc.Server, srv StenographerServer)

Types

type PcapRequest

type PcapRequest struct {
	Uid                  string   `protobuf:"bytes,1,opt,name=uid,proto3" json:"uid,omitempty"`
	ChunkSize            int64    `protobuf:"varint,2,opt,name=chunk_size,json=chunkSize,proto3" json:"chunk_size,omitempty"`
	MaxSize              int64    `protobuf:"varint,3,opt,name=max_size,json=maxSize,proto3" json:"max_size,omitempty"`
	Query                string   `protobuf:"bytes,4,opt,name=query,proto3" json:"query,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*PcapRequest) Descriptor

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

func (*PcapRequest) GetChunkSize

func (m *PcapRequest) GetChunkSize() int64

func (*PcapRequest) GetMaxSize

func (m *PcapRequest) GetMaxSize() int64

func (*PcapRequest) GetQuery

func (m *PcapRequest) GetQuery() string

func (*PcapRequest) GetUid

func (m *PcapRequest) GetUid() string

func (*PcapRequest) ProtoMessage

func (*PcapRequest) ProtoMessage()

func (*PcapRequest) Reset

func (m *PcapRequest) Reset()

func (*PcapRequest) String

func (m *PcapRequest) String() string

func (*PcapRequest) XXX_DiscardUnknown

func (m *PcapRequest) XXX_DiscardUnknown()

func (*PcapRequest) XXX_Marshal

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

func (*PcapRequest) XXX_Merge

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

func (*PcapRequest) XXX_Size

func (m *PcapRequest) XXX_Size() int

func (*PcapRequest) XXX_Unmarshal

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

type PcapResponse

type PcapResponse struct {
	Uid                  string   `protobuf:"bytes,1,opt,name=uid,proto3" json:"uid,omitempty"`
	Pcap                 []byte   `protobuf:"bytes,2,opt,name=pcap,proto3" json:"pcap,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*PcapResponse) Descriptor

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

func (*PcapResponse) GetPcap

func (m *PcapResponse) GetPcap() []byte

func (*PcapResponse) GetUid

func (m *PcapResponse) GetUid() string

func (*PcapResponse) ProtoMessage

func (*PcapResponse) ProtoMessage()

func (*PcapResponse) Reset

func (m *PcapResponse) Reset()

func (*PcapResponse) String

func (m *PcapResponse) String() string

func (*PcapResponse) XXX_DiscardUnknown

func (m *PcapResponse) XXX_DiscardUnknown()

func (*PcapResponse) XXX_Marshal

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

func (*PcapResponse) XXX_Merge

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

func (*PcapResponse) XXX_Size

func (m *PcapResponse) XXX_Size() int

func (*PcapResponse) XXX_Unmarshal

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

type StenographerClient

type StenographerClient interface {
	RetrievePcap(ctx context.Context, in *PcapRequest, opts ...grpc.CallOption) (Stenographer_RetrievePcapClient, error)
}

StenographerClient is the client API for Stenographer service.

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

func NewStenographerClient

func NewStenographerClient(cc *grpc.ClientConn) StenographerClient

type StenographerServer

type StenographerServer interface {
	RetrievePcap(*PcapRequest, Stenographer_RetrievePcapServer) error
}

StenographerServer is the server API for Stenographer service.

type Stenographer_RetrievePcapClient

type Stenographer_RetrievePcapClient interface {
	Recv() (*PcapResponse, error)
	grpc.ClientStream
}

type Stenographer_RetrievePcapServer

type Stenographer_RetrievePcapServer interface {
	Send(*PcapResponse) error
	grpc.ServerStream
}

Jump to

Keyboard shortcuts

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