basic

package
v0.0.0-...-23f538b Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2022 License: Apache-2.0 Imports: 4 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_gitee_com_jingshanccc_course_public_proto_basic_basic_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Boolean

type Boolean struct {
	Is bool `protobuf:"varint,1,opt,name=is,proto3" json:"is,omitempty"`
	// contains filtered or unexported fields
}

func (*Boolean) Descriptor deprecated

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

Deprecated: Use Boolean.ProtoReflect.Descriptor instead.

func (*Boolean) GetIs

func (x *Boolean) GetIs() bool

func (*Boolean) ProtoMessage

func (*Boolean) ProtoMessage()

func (*Boolean) ProtoReflect

func (x *Boolean) ProtoReflect() protoreflect.Message

func (*Boolean) Reset

func (x *Boolean) Reset()

func (*Boolean) String

func (x *Boolean) String() string

type Integer

type Integer struct {
	Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*Integer) Descriptor deprecated

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

Deprecated: Use Integer.ProtoReflect.Descriptor instead.

func (*Integer) GetId

func (x *Integer) GetId() int32

func (*Integer) ProtoMessage

func (*Integer) ProtoMessage()

func (*Integer) ProtoReflect

func (x *Integer) ProtoReflect() protoreflect.Message

func (*Integer) Reset

func (x *Integer) Reset()

func (*Integer) String

func (x *Integer) String() string

type IntegerList

type IntegerList struct {
	Ids []int32 `protobuf:"varint,1,rep,packed,name=ids,proto3" json:"ids,omitempty"`
	// contains filtered or unexported fields
}

func (*IntegerList) Descriptor deprecated

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

Deprecated: Use IntegerList.ProtoReflect.Descriptor instead.

func (*IntegerList) GetIds

func (x *IntegerList) GetIds() []int32

func (*IntegerList) ProtoMessage

func (*IntegerList) ProtoMessage()

func (*IntegerList) ProtoReflect

func (x *IntegerList) ProtoReflect() protoreflect.Message

func (*IntegerList) Reset

func (x *IntegerList) Reset()

func (*IntegerList) String

func (x *IntegerList) String() string

type Pair

type Pair struct {
	Key    string   `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
	Values []string `protobuf:"bytes,2,rep,name=values,proto3" json:"values,omitempty"`
	// contains filtered or unexported fields
}

func (*Pair) Descriptor deprecated

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

Deprecated: Use Pair.ProtoReflect.Descriptor instead.

func (*Pair) GetKey

func (x *Pair) GetKey() string

func (*Pair) GetValues

func (x *Pair) GetValues() []string

func (*Pair) ProtoMessage

func (*Pair) ProtoMessage()

func (*Pair) ProtoReflect

func (x *Pair) ProtoReflect() protoreflect.Message

func (*Pair) Reset

func (x *Pair) Reset()

func (*Pair) String

func (x *Pair) String() string

type Request

type Request struct {
	Method string           `protobuf:"bytes,1,opt,name=method,proto3" json:"method,omitempty"`
	Path   string           `protobuf:"bytes,2,opt,name=path,proto3" json:"path,omitempty"`
	Header map[string]*Pair ``                                                              /* 153-byte string literal not displayed */
	Get    map[string]*Pair ``                                                              /* 147-byte string literal not displayed */
	Post   map[string]*Pair ``                                                              /* 149-byte string literal not displayed */
	Body   string           `protobuf:"bytes,6,opt,name=body,proto3" json:"body,omitempty"` // raw request body; if not application/x-www-form-urlencoded
	Url    string           `protobuf:"bytes,7,opt,name=url,proto3" json:"url,omitempty"`
	// contains filtered or unexported fields
}

A HTTP request as RPC Forward by the api handler

func (*Request) Descriptor deprecated

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

Deprecated: Use Request.ProtoReflect.Descriptor instead.

func (*Request) GetBody

func (x *Request) GetBody() string

func (*Request) GetGet

func (x *Request) GetGet() map[string]*Pair

func (*Request) GetHeader

func (x *Request) GetHeader() map[string]*Pair

func (*Request) GetMethod

func (x *Request) GetMethod() string

func (*Request) GetPath

func (x *Request) GetPath() string

func (*Request) GetPost

func (x *Request) GetPost() map[string]*Pair

func (*Request) GetUrl

func (x *Request) GetUrl() string

func (*Request) ProtoMessage

func (*Request) ProtoMessage()

func (*Request) ProtoReflect

func (x *Request) ProtoReflect() protoreflect.Message

func (*Request) Reset

func (x *Request) Reset()

func (*Request) String

func (x *Request) String() string

type Response

type Response struct {
	StatusCode int32            `protobuf:"varint,1,opt,name=statusCode,proto3" json:"statusCode,omitempty"`
	Header     map[string]*Pair `` /* 153-byte string literal not displayed */
	Body       string           `protobuf:"bytes,3,opt,name=body,proto3" json:"body,omitempty"`
	// contains filtered or unexported fields
}

A HTTP response as RPC Expected response for the api handler

func (*Response) Descriptor deprecated

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

Deprecated: Use Response.ProtoReflect.Descriptor instead.

func (*Response) GetBody

func (x *Response) GetBody() string

func (*Response) GetHeader

func (x *Response) GetHeader() map[string]*Pair

func (*Response) GetStatusCode

func (x *Response) GetStatusCode() int32

func (*Response) ProtoMessage

func (*Response) ProtoMessage()

func (*Response) ProtoReflect

func (x *Response) ProtoReflect() protoreflect.Message

func (*Response) Reset

func (x *Response) Reset()

func (*Response) String

func (x *Response) String() string

type String

type String struct {
	Str string `protobuf:"bytes,1,opt,name=str,proto3" json:"str,omitempty"`
	// contains filtered or unexported fields
}

func (*String) Descriptor deprecated

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

Deprecated: Use String.ProtoReflect.Descriptor instead.

func (*String) GetStr

func (x *String) GetStr() string

func (*String) ProtoMessage

func (*String) ProtoMessage()

func (*String) ProtoReflect

func (x *String) ProtoReflect() protoreflect.Message

func (*String) Reset

func (x *String) Reset()

func (*String) String

func (x *String) String() string

type StringList

type StringList struct {
	Rows []string `protobuf:"bytes,1,rep,name=rows,proto3" json:"rows,omitempty"`
	// contains filtered or unexported fields
}

func (*StringList) Descriptor deprecated

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

Deprecated: Use StringList.ProtoReflect.Descriptor instead.

func (*StringList) GetRows

func (x *StringList) GetRows() []string

func (*StringList) ProtoMessage

func (*StringList) ProtoMessage()

func (*StringList) ProtoReflect

func (x *StringList) ProtoReflect() protoreflect.Message

func (*StringList) Reset

func (x *StringList) Reset()

func (*StringList) String

func (x *StringList) String() string

Jump to

Keyboard shortcuts

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