proto

package
v0.0.0-...-98d4610 Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2023 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Options_name = map[int32]string{
		0: "FIRST",
		1: "SECOND",
	}
	Options_value = map[string]int32{
		"FIRST":  0,
		"SECOND": 1,
	}
)

Enum value maps for Options.

View Source
var File_proto_example2_proto protoreflect.FileDescriptor
View Source
var File_proto_example_proto protoreflect.FileDescriptor

Functions

func RegisterServiceNameHTTPGoServer

func RegisterServiceNameHTTPGoServer(
	_ context.Context,
	r *router.Router,
	h ServiceNameHTTPGoService,
	middlewares []func(ctx *fasthttp.RequestCtx, handler func(ctx *fasthttp.RequestCtx) (resp interface{}, err error)) (resp interface{}, err error),
) error

Types

type AllTypesMsg

type AllTypesMsg struct {
	BoolValue     bool    `protobuf:"varint,1,opt,name=BoolValue,proto3" json:"BoolValue,omitempty"`
	EnumValue     Options `protobuf:"varint,2,opt,name=EnumValue,proto3,enum=example.Options" json:"EnumValue,omitempty"`
	Int32Value    int32   `protobuf:"varint,3,opt,name=Int32Value,proto3" json:"Int32Value,omitempty"`
	Sint32Value   int32   `protobuf:"zigzag32,4,opt,name=Sint32Value,proto3" json:"Sint32Value,omitempty"`
	Uint32Value   uint32  `protobuf:"varint,5,opt,name=Uint32Value,proto3" json:"Uint32Value,omitempty"`
	Int64Value    int64   `protobuf:"varint,6,opt,name=Int64Value,proto3" json:"Int64Value,omitempty"`
	Sint64Value   int64   `protobuf:"zigzag64,7,opt,name=Sint64Value,proto3" json:"Sint64Value,omitempty"`
	Uint64Value   uint64  `protobuf:"varint,8,opt,name=Uint64Value,proto3" json:"Uint64Value,omitempty"`
	Sfixed32Value int32   `protobuf:"fixed32,9,opt,name=Sfixed32Value,proto3" json:"Sfixed32Value,omitempty"`
	Fixed32Value  uint32  `protobuf:"fixed32,10,opt,name=Fixed32Value,proto3" json:"Fixed32Value,omitempty"`
	FloatValue    float32 `protobuf:"fixed32,11,opt,name=FloatValue,proto3" json:"FloatValue,omitempty"`
	Sfixed64Value int64   `protobuf:"fixed64,12,opt,name=Sfixed64Value,proto3" json:"Sfixed64Value,omitempty"`
	Fixed64Value  uint64  `protobuf:"fixed64,13,opt,name=Fixed64Value,proto3" json:"Fixed64Value,omitempty"`
	DoubleValue   float64 `protobuf:"fixed64,14,opt,name=DoubleValue,proto3" json:"DoubleValue,omitempty"`
	StringValue   string  `protobuf:"bytes,15,opt,name=StringValue,proto3" json:"StringValue,omitempty"`
	BytesValue    []byte  `protobuf:"bytes,16,opt,name=BytesValue,proto3" json:"BytesValue,omitempty"` //  InputMsgName MessageValue = 17; // not supported
	// contains filtered or unexported fields
}

func (*AllTypesMsg) Descriptor deprecated

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

Deprecated: Use AllTypesMsg.ProtoReflect.Descriptor instead.

func (*AllTypesMsg) GetBoolValue

func (x *AllTypesMsg) GetBoolValue() bool

func (*AllTypesMsg) GetBytesValue

func (x *AllTypesMsg) GetBytesValue() []byte

func (*AllTypesMsg) GetDoubleValue

func (x *AllTypesMsg) GetDoubleValue() float64

func (*AllTypesMsg) GetEnumValue

func (x *AllTypesMsg) GetEnumValue() Options

func (*AllTypesMsg) GetFixed32Value

func (x *AllTypesMsg) GetFixed32Value() uint32

func (*AllTypesMsg) GetFixed64Value

func (x *AllTypesMsg) GetFixed64Value() uint64

func (*AllTypesMsg) GetFloatValue

func (x *AllTypesMsg) GetFloatValue() float32

func (*AllTypesMsg) GetInt32Value

func (x *AllTypesMsg) GetInt32Value() int32

func (*AllTypesMsg) GetInt64Value

func (x *AllTypesMsg) GetInt64Value() int64

func (*AllTypesMsg) GetSfixed32Value

func (x *AllTypesMsg) GetSfixed32Value() int32

func (*AllTypesMsg) GetSfixed64Value

func (x *AllTypesMsg) GetSfixed64Value() int64

func (*AllTypesMsg) GetSint32Value

func (x *AllTypesMsg) GetSint32Value() int32

func (*AllTypesMsg) GetSint64Value

func (x *AllTypesMsg) GetSint64Value() int64

func (*AllTypesMsg) GetStringValue

func (x *AllTypesMsg) GetStringValue() string

func (*AllTypesMsg) GetUint32Value

func (x *AllTypesMsg) GetUint32Value() uint32

func (*AllTypesMsg) GetUint64Value

func (x *AllTypesMsg) GetUint64Value() uint64

func (AllTypesMsg) MarshalEasyJSON

func (v AllTypesMsg) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (AllTypesMsg) MarshalJSON

func (v AllTypesMsg) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*AllTypesMsg) ProtoMessage

func (*AllTypesMsg) ProtoMessage()

func (*AllTypesMsg) ProtoReflect

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

func (*AllTypesMsg) Reset

func (x *AllTypesMsg) Reset()

func (*AllTypesMsg) String

func (x *AllTypesMsg) String() string

func (*AllTypesMsg) UnmarshalEasyJSON

func (v *AllTypesMsg) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*AllTypesMsg) UnmarshalJSON

func (v *AllTypesMsg) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type InputMsgName

type InputMsgName struct {
	Int64Argument  int64  `protobuf:"varint,1,opt,name=int64Argument,proto3" json:"int64Argument,omitempty"`
	StringArgument string `protobuf:"bytes,2,opt,name=stringArgument,proto3" json:"stringArgument,omitempty"`
	// contains filtered or unexported fields
}

func (*InputMsgName) Descriptor deprecated

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

Deprecated: Use InputMsgName.ProtoReflect.Descriptor instead.

func (*InputMsgName) GetInt64Argument

func (x *InputMsgName) GetInt64Argument() int64

func (*InputMsgName) GetStringArgument

func (x *InputMsgName) GetStringArgument() string

func (InputMsgName) MarshalEasyJSON

func (v InputMsgName) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (InputMsgName) MarshalJSON

func (v InputMsgName) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*InputMsgName) ProtoMessage

func (*InputMsgName) ProtoMessage()

func (*InputMsgName) ProtoReflect

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

func (*InputMsgName) Reset

func (x *InputMsgName) Reset()

func (*InputMsgName) String

func (x *InputMsgName) String() string

func (*InputMsgName) UnmarshalEasyJSON

func (v *InputMsgName) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*InputMsgName) UnmarshalJSON

func (v *InputMsgName) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type Options

type Options int32
const (
	Options_FIRST  Options = 0
	Options_SECOND Options = 1
)

func (Options) Descriptor

func (Options) Descriptor() protoreflect.EnumDescriptor

func (Options) Enum

func (x Options) Enum() *Options

func (Options) EnumDescriptor deprecated

func (Options) EnumDescriptor() ([]byte, []int)

Deprecated: Use Options.Descriptor instead.

func (Options) Number

func (x Options) Number() protoreflect.EnumNumber

func (Options) String

func (x Options) String() string

func (Options) Type

func (Options) Type() protoreflect.EnumType

type OutputMsgName

type OutputMsgName struct {
	StringValue string `protobuf:"bytes,1,opt,name=stringValue,proto3" json:"stringValue,omitempty"`
	IntValue    int64  `protobuf:"varint,2,opt,name=intValue,proto3" json:"intValue,omitempty"`
	// contains filtered or unexported fields
}

func (*OutputMsgName) Descriptor deprecated

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

Deprecated: Use OutputMsgName.ProtoReflect.Descriptor instead.

func (*OutputMsgName) GetIntValue

func (x *OutputMsgName) GetIntValue() int64

func (*OutputMsgName) GetStringValue

func (x *OutputMsgName) GetStringValue() string

func (OutputMsgName) MarshalEasyJSON

func (v OutputMsgName) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (OutputMsgName) MarshalJSON

func (v OutputMsgName) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*OutputMsgName) ProtoMessage

func (*OutputMsgName) ProtoMessage()

func (*OutputMsgName) ProtoReflect

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

func (*OutputMsgName) Reset

func (x *OutputMsgName) Reset()

func (*OutputMsgName) String

func (x *OutputMsgName) String() string

func (*OutputMsgName) UnmarshalEasyJSON

func (v *OutputMsgName) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*OutputMsgName) UnmarshalJSON

func (v *OutputMsgName) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type SecondServiceName2HTTPGoClient

type SecondServiceName2HTTPGoClient struct {
	// contains filtered or unexported fields
}

func GetSecondServiceName2HTTPGoClient

func GetSecondServiceName2HTTPGoClient(
	_ context.Context,
	cl *fasthttp.Client,
	host string,
	middlewares []func(ctx context.Context, req *fasthttp.Request, handler func(ctx context.Context, req *fasthttp.Request) (resp *fasthttp.Response, err error)) (resp *fasthttp.Response, err error),
) (*SecondServiceName2HTTPGoClient, error)

func (*SecondServiceName2HTTPGoClient) Imports

type SecondServiceName2HTTPGoService

type SecondServiceName2HTTPGoService interface {
	Imports(context.Context, *somepackage.SomeCustomMsg1) (*somepackage.SomeCustomMsg2, error)
}

type ServiceName2HTTPGoClient

type ServiceName2HTTPGoClient struct {
	// contains filtered or unexported fields
}

func GetServiceName2HTTPGoClient

func GetServiceName2HTTPGoClient(
	_ context.Context,
	cl *fasthttp.Client,
	host string,
	middlewares []func(ctx context.Context, req *fasthttp.Request, handler func(ctx context.Context, req *fasthttp.Request) (resp *fasthttp.Response, err error)) (resp *fasthttp.Response, err error),
) (*ServiceName2HTTPGoClient, error)

func (*ServiceName2HTTPGoClient) Imports

type ServiceName2HTTPGoService

type ServiceName2HTTPGoService interface {
	Imports(context.Context, *somepackage.SomeCustomMsg1) (*somepackage.SomeCustomMsg2, error)
}

type ServiceNameHTTPGoClient

type ServiceNameHTTPGoClient struct {
	// contains filtered or unexported fields
}

func GetServiceNameHTTPGoClient

func GetServiceNameHTTPGoClient(
	_ context.Context,
	cl *fasthttp.Client,
	host string,
	middlewares []func(ctx context.Context, req *fasthttp.Request, handler func(ctx context.Context, req *fasthttp.Request) (resp *fasthttp.Response, err error)) (resp *fasthttp.Response, err error),
) (*ServiceNameHTTPGoClient, error)

func (*ServiceNameHTTPGoClient) AllTypesTest

func (p *ServiceNameHTTPGoClient) AllTypesTest(ctx context.Context, request *AllTypesMsg) (resp *AllTypesMsg, err error)

func (*ServiceNameHTTPGoClient) CommonTypes

func (p *ServiceNameHTTPGoClient) CommonTypes(ctx context.Context, request *anypb.Any) (resp *emptypb.Empty, err error)

func (*ServiceNameHTTPGoClient) Imports

func (*ServiceNameHTTPGoClient) RPCName

func (p *ServiceNameHTTPGoClient) RPCName(ctx context.Context, request *InputMsgName) (resp *OutputMsgName, err error)

func (*ServiceNameHTTPGoClient) SameInputAndOutput

func (p *ServiceNameHTTPGoClient) SameInputAndOutput(ctx context.Context, request *InputMsgName) (resp *OutputMsgName, err error)

SameInputAndOutput same types but different query, we need different query builder function

type ServiceNameHTTPGoService

type ServiceNameHTTPGoService interface {
	RPCName(context.Context, *InputMsgName) (*OutputMsgName, error)
	AllTypesTest(context.Context, *AllTypesMsg) (*AllTypesMsg, error)
	CommonTypes(context.Context, *anypb.Any) (*emptypb.Empty, error)
	Imports(context.Context, *somepackage.SomeCustomMsg1) (*somepackage.SomeCustomMsg2, error)
	SameInputAndOutput(context.Context, *InputMsgName) (*OutputMsgName, error)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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