grpcapi

package
v0.0.0-...-153971b Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2023 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Overview

Package grpcapi is a generated protocol buffer package.

It is generated from these files:

implant.proto

It has these top-level messages:

Command
Empty

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterAdminServer

func RegisterAdminServer(s *grpc.Server, srv AdminServer)

func RegisterImplantServer

func RegisterImplantServer(s *grpc.Server, srv ImplantServer)

Types

type AdminClient

type AdminClient interface {
	RunCommand(ctx context.Context, in *Command, opts ...grpc.CallOption) (*Command, error)
}

func NewAdminClient

func NewAdminClient(cc *grpc.ClientConn) AdminClient

type AdminServer

type AdminServer interface {
	RunCommand(context.Context, *Command) (*Command, error)
}

type Command

type Command struct {
	In  string `protobuf:"bytes,1,opt,name=In" json:"In,omitempty"`
	Out string `protobuf:"bytes,2,opt,name=Out" json:"Out,omitempty"`
}

Command defines a with both input and output fields

func (*Command) Descriptor

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

func (*Command) GetIn

func (m *Command) GetIn() string

func (*Command) GetOut

func (m *Command) GetOut() string

func (*Command) ProtoMessage

func (*Command) ProtoMessage()

func (*Command) Reset

func (m *Command) Reset()

func (*Command) String

func (m *Command) String() string

type Empty

type Empty struct {
}

Empty defines an empty message used in place of null

func (*Empty) Descriptor

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

func (*Empty) ProtoMessage

func (*Empty) ProtoMessage()

func (*Empty) Reset

func (m *Empty) Reset()

func (*Empty) String

func (m *Empty) String() string

type ImplantClient

type ImplantClient interface {
	FetchCommand(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*Command, error)
	SendOutput(ctx context.Context, in *Command, opts ...grpc.CallOption) (*Empty, error)
}

func NewImplantClient

func NewImplantClient(cc *grpc.ClientConn) ImplantClient

type ImplantServer

type ImplantServer interface {
	FetchCommand(context.Context, *Empty) (*Command, error)
	SendOutput(context.Context, *Command) (*Empty, error)
}

Jump to

Keyboard shortcuts

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