test

package
v0.0.0-...-826765a Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2023 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	BindGinTagName = "json"
	// GinResponseBodyKey represents the response content key
	GinResponseBodyKey = "_gin-gonic/gin/responsebodykey"
	// GinBindRequestBody binds the body parameter
	GinBindRequestBody = _ginBindRequestBody
)
View Source
var File_test_test_proto protoreflect.FileDescriptor

Functions

func RegisterTestEchoServer

func RegisterTestEchoServer(r TestHttpRouter, srv TestEchoServer)

func RegisterTestGinServer

func RegisterTestGinServer(r TestGinRouter, srv TestGinServer)

func SetGinBindRequestBody

func SetGinBindRequestBody(f func(*gin.Context, any) error)

Types

type CreateTestReply

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

func (*CreateTestReply) Descriptor deprecated

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

Deprecated: Use CreateTestReply.ProtoReflect.Descriptor instead.

func (*CreateTestReply) GetId

func (x *CreateTestReply) GetId() uint64

func (*CreateTestReply) ProtoMessage

func (*CreateTestReply) ProtoMessage()

func (*CreateTestReply) ProtoReflect

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

func (*CreateTestReply) Reset

func (x *CreateTestReply) Reset()

func (*CreateTestReply) String

func (x *CreateTestReply) String() string

type CreateTestRequest

type CreateTestRequest struct {
	Name   string   `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	CaName string   `protobuf:"bytes,2,opt,name=ca_name,json=caName,proto3" json:"ca_name,omitempty"`
	Emails []string `protobuf:"bytes,3,rep,name=emails,proto3" json:"emails,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateTestRequest) Descriptor deprecated

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

Deprecated: Use CreateTestRequest.ProtoReflect.Descriptor instead.

func (*CreateTestRequest) GetCaName

func (x *CreateTestRequest) GetCaName() string

func (*CreateTestRequest) GetEmails

func (x *CreateTestRequest) GetEmails() []string

func (*CreateTestRequest) GetName

func (x *CreateTestRequest) GetName() string

func (*CreateTestRequest) ProtoMessage

func (*CreateTestRequest) ProtoMessage()

func (*CreateTestRequest) ProtoReflect

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

func (*CreateTestRequest) Reset

func (x *CreateTestRequest) Reset()

func (*CreateTestRequest) String

func (x *CreateTestRequest) String() string

type DeleteTestRequest

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

func (*DeleteTestRequest) Descriptor deprecated

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

Deprecated: Use DeleteTestRequest.ProtoReflect.Descriptor instead.

func (*DeleteTestRequest) GetId

func (x *DeleteTestRequest) GetId() uint64

func (*DeleteTestRequest) ProtoMessage

func (*DeleteTestRequest) ProtoMessage()

func (*DeleteTestRequest) ProtoReflect

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

func (*DeleteTestRequest) Reset

func (x *DeleteTestRequest) Reset()

func (*DeleteTestRequest) String

func (x *DeleteTestRequest) String() string

type GetTestReply

type GetTestReply struct {
	Id         uint64   `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	Name       string   `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	Emails     []string `protobuf:"bytes,3,rep,name=emails,proto3" json:"emails,omitempty"`
	CreateTime int64    `protobuf:"varint,4,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
	UpdateTime int64    `protobuf:"varint,5,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"`
	// contains filtered or unexported fields
}

func (*GetTestReply) Descriptor deprecated

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

Deprecated: Use GetTestReply.ProtoReflect.Descriptor instead.

func (*GetTestReply) GetCreateTime

func (x *GetTestReply) GetCreateTime() int64

func (*GetTestReply) GetEmails

func (x *GetTestReply) GetEmails() []string

func (*GetTestReply) GetId

func (x *GetTestReply) GetId() uint64

func (*GetTestReply) GetName

func (x *GetTestReply) GetName() string

func (*GetTestReply) GetUpdateTime

func (x *GetTestReply) GetUpdateTime() int64

func (*GetTestReply) ProtoMessage

func (*GetTestReply) ProtoMessage()

func (*GetTestReply) ProtoReflect

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

func (*GetTestReply) Reset

func (x *GetTestReply) Reset()

func (*GetTestReply) String

func (x *GetTestReply) String() string

type GetTestRequest

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

func (*GetTestRequest) Descriptor deprecated

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

Deprecated: Use GetTestRequest.ProtoReflect.Descriptor instead.

func (*GetTestRequest) GetId

func (x *GetTestRequest) GetId() uint64

func (*GetTestRequest) ProtoMessage

func (*GetTestRequest) ProtoMessage()

func (*GetTestRequest) ProtoReflect

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

func (*GetTestRequest) Reset

func (x *GetTestRequest) Reset()

func (*GetTestRequest) String

func (x *GetTestRequest) String() string

type ListTestReply

type ListTestReply struct {
	Items []*ListTestReply_Item `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"`
	// contains filtered or unexported fields
}

func (*ListTestReply) Descriptor deprecated

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

Deprecated: Use ListTestReply.ProtoReflect.Descriptor instead.

func (*ListTestReply) GetItems

func (x *ListTestReply) GetItems() []*ListTestReply_Item

func (*ListTestReply) ProtoMessage

func (*ListTestReply) ProtoMessage()

func (*ListTestReply) ProtoReflect

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

func (*ListTestReply) Reset

func (x *ListTestReply) Reset()

func (*ListTestReply) String

func (x *ListTestReply) String() string

type ListTestReply_Item

type ListTestReply_Item struct {
	Id         uint64   `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	Name       string   `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	Emails     []string `protobuf:"bytes,3,rep,name=emails,proto3" json:"emails,omitempty"`
	CreateTime int64    `protobuf:"varint,4,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
	UpdateTime int64    `protobuf:"varint,5,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"`
	// contains filtered or unexported fields
}

func (*ListTestReply_Item) Descriptor deprecated

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

Deprecated: Use ListTestReply_Item.ProtoReflect.Descriptor instead.

func (*ListTestReply_Item) GetCreateTime

func (x *ListTestReply_Item) GetCreateTime() int64

func (*ListTestReply_Item) GetEmails

func (x *ListTestReply_Item) GetEmails() []string

func (*ListTestReply_Item) GetId

func (x *ListTestReply_Item) GetId() uint64

func (*ListTestReply_Item) GetName

func (x *ListTestReply_Item) GetName() string

func (*ListTestReply_Item) GetUpdateTime

func (x *ListTestReply_Item) GetUpdateTime() int64

func (*ListTestReply_Item) ProtoMessage

func (*ListTestReply_Item) ProtoMessage()

func (*ListTestReply_Item) ProtoReflect

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

func (*ListTestReply_Item) Reset

func (x *ListTestReply_Item) Reset()

func (*ListTestReply_Item) String

func (x *ListTestReply_Item) String() string

type ListTestRequest

type ListTestRequest struct {
	Kw       string            `protobuf:"bytes,1,opt,name=kw,proto3" json:"kw,omitempty"`
	Page     int64             `protobuf:"varint,2,opt,name=page,proto3" json:"page,omitempty"`
	PageSize int64             `protobuf:"varint,3,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
	Id       *ListTestRequestA `protobuf:"bytes,4,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*ListTestRequest) Descriptor deprecated

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

Deprecated: Use ListTestRequest.ProtoReflect.Descriptor instead.

func (*ListTestRequest) GetId

func (x *ListTestRequest) GetId() *ListTestRequestA

func (*ListTestRequest) GetKw

func (x *ListTestRequest) GetKw() string

func (*ListTestRequest) GetPage

func (x *ListTestRequest) GetPage() int64

func (*ListTestRequest) GetPageSize

func (x *ListTestRequest) GetPageSize() int64

func (*ListTestRequest) ProtoMessage

func (*ListTestRequest) ProtoMessage()

func (*ListTestRequest) ProtoReflect

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

func (*ListTestRequest) Reset

func (x *ListTestRequest) Reset()

func (*ListTestRequest) String

func (x *ListTestRequest) String() string

type ListTestRequestA

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

func (*ListTestRequestA) Descriptor deprecated

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

Deprecated: Use ListTestRequestA.ProtoReflect.Descriptor instead.

func (*ListTestRequestA) GetB

func (x *ListTestRequestA) GetB() string

func (*ListTestRequestA) ProtoMessage

func (*ListTestRequestA) ProtoMessage()

func (*ListTestRequestA) ProtoReflect

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

func (*ListTestRequestA) Reset

func (x *ListTestRequestA) Reset()

func (*ListTestRequestA) String

func (x *ListTestRequestA) String() string

type TestEchoServer

type TestEchoServer interface {
	List(ctx context.Context, req *ListTestRequest) (*ListTestReply, error)
	Get(ctx context.Context, req *GetTestRequest) (*GetTestReply, error)
	Create(ctx context.Context, req *CreateTestRequest) (*CreateTestReply, error)
	Update(ctx context.Context, req *UpdateTestRequest) (*UpdateTestReply, error)
	Delete(ctx context.Context, req *DeleteTestRequest) (*emptypb.Empty, error)
	// contains filtered or unexported methods
}

TestEchoServer is the server API for Test service. All implementations must embed UnimplementedTestEchoServer for forward compatibility

type TestGinRouter

type TestGinRouter = gin.IRoutes

type TestGinServer

type TestGinServer interface {
	List(ctx context.Context, req *ListTestRequest) (*ListTestReply, error)
	Get(ctx context.Context, req *GetTestRequest) (*GetTestReply, error)
	Create(ctx context.Context, req *CreateTestRequest) (*CreateTestReply, error)
	Update(ctx context.Context, req *UpdateTestRequest) (*UpdateTestReply, error)
	Delete(ctx context.Context, req *DeleteTestRequest) (*emptypb.Empty, error)
	// contains filtered or unexported methods
}

TestGinServer is the server API for Test service. All implementations must embed UnimplementedTestGinServer for forward compatibility

type TestHttpRouter

type TestHttpRouter interface {
	Add(method, path string, handler v4.HandlerFunc, middleware ...v4.MiddlewareFunc) *v4.Route
}

type UnimplementedTestEchoServer

type UnimplementedTestEchoServer struct {
}

UnimplementedTestEchoServer must be embedded to have forward compatible implementations.

func (UnimplementedTestEchoServer) Create

func (UnimplementedTestEchoServer) Delete

func (UnimplementedTestEchoServer) Get

func (UnimplementedTestEchoServer) List

func (UnimplementedTestEchoServer) Update

type UnimplementedTestGinServer

type UnimplementedTestGinServer struct{}

UnimplementedTestGinServer must be embedded to have forward compatible implementations.

func (UnimplementedTestGinServer) Create

func (UnimplementedTestGinServer) Delete

func (UnimplementedTestGinServer) Get

func (UnimplementedTestGinServer) List

func (UnimplementedTestGinServer) Update

type UnsafeTestEchoServer

type UnsafeTestEchoServer interface {
	// contains filtered or unexported methods
}

UnsafeTestEchoServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to TestEchoServer will result in compilation errors.

type UnsafeTestGinServer

type UnsafeTestGinServer interface {
	// contains filtered or unexported methods
}

UnsafeTestGinServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to TestGinServer will result in compilation errors.

type UpdateTestReply

type UpdateTestReply struct {
	Id     uint64   `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	Name   string   `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	Emails []string `protobuf:"bytes,3,rep,name=emails,proto3" json:"emails,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateTestReply) Descriptor deprecated

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

Deprecated: Use UpdateTestReply.ProtoReflect.Descriptor instead.

func (*UpdateTestReply) GetEmails

func (x *UpdateTestReply) GetEmails() []string

func (*UpdateTestReply) GetId

func (x *UpdateTestReply) GetId() uint64

func (*UpdateTestReply) GetName

func (x *UpdateTestReply) GetName() string

func (*UpdateTestReply) ProtoMessage

func (*UpdateTestReply) ProtoMessage()

func (*UpdateTestReply) ProtoReflect

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

func (*UpdateTestReply) Reset

func (x *UpdateTestReply) Reset()

func (*UpdateTestReply) String

func (x *UpdateTestReply) String() string

type UpdateTestRequest

type UpdateTestRequest struct {
	Id     uint64   `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	Name   *string  `protobuf:"bytes,2,opt,name=name,proto3,oneof" json:"name,omitempty"`
	Emails []string `protobuf:"bytes,3,rep,name=emails,proto3" json:"emails,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateTestRequest) Descriptor deprecated

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

Deprecated: Use UpdateTestRequest.ProtoReflect.Descriptor instead.

func (*UpdateTestRequest) GetEmails

func (x *UpdateTestRequest) GetEmails() []string

func (*UpdateTestRequest) GetId

func (x *UpdateTestRequest) GetId() uint64

func (*UpdateTestRequest) GetName

func (x *UpdateTestRequest) GetName() string

func (*UpdateTestRequest) ProtoMessage

func (*UpdateTestRequest) ProtoMessage()

func (*UpdateTestRequest) ProtoReflect

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

func (*UpdateTestRequest) Reset

func (x *UpdateTestRequest) Reset()

func (*UpdateTestRequest) String

func (x *UpdateTestRequest) String() string

Jump to

Keyboard shortcuts

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