proxybot

package
v0.0.0-...-cd4db58 Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2022 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ProxyBot

type ProxyBot struct {
	*tgbotapi.BotAPI
	// contains filtered or unexported fields
}

func NewProxyBot

func NewProxyBot(token string, puller *grpc.ClientConn) (*ProxyBot, error)

func (*ProxyBot) Listen

func (b *ProxyBot) Listen()

type RequestWrapper

type RequestWrapper struct {
	Uuid    uuid.UUID           `json:"id"`
	Url     string              `json:"url"`
	Method  string              `json:"method"`
	Body    []byte              `json:"body"`
	Headers map[string][]string `json:"headers"`
}

type RequestsWrapper

type RequestsWrapper struct {
	Data []RequestWrapper `json:"data"`
}

type ResponseWrapper

type ResponseWrapper struct {
	Uuid          uuid.UUID           `json:"id"`
	StatusCode    int32               `json:"code"`
	ProtoMajor    int32               `json:"protoMajor"`
	ProtoMinor    int32               `json:"protoMinor"`
	Header        map[string][]string `json:"header"`
	Body          []byte              `json:"body"`
	ContentLength int64               `json:"contentLength"`
}

type ResponsesWrapper

type ResponsesWrapper struct {
	Data []ResponseWrapper `json:"data"`
}

Jump to

Keyboard shortcuts

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