Documentation
¶
Index ¶
- Variables
- type Error
- type Nested
- type TestCommon
- func (*TestCommon) Descriptor() ([]byte, []int)deprecated
- func (TestCommon) Error() string
- func (x *TestCommon) FromJSON(content []byte) error
- func (x *TestCommon) GetCreateTime() *protox.Timestamp
- func (x *TestCommon) GetDescription() string
- func (x *TestCommon) GetId() int64
- func (x *TestCommon) GetName() string
- func (x *TestCommon) GetProjectId() int64
- func (x *TestCommon) GetPublic() string
- func (x *TestCommon) GetPublicId() string
- func (x *TestCommon) GetType() string
- func (x *TestCommon) GetUpdateTime() *protox.Timestamp
- func (x TestCommon) JSON() ([]byte, error)
- func (*TestCommon) ProtoMessage()
- func (x *TestCommon) ProtoReflect() protoreflect.Message
- func (x *TestCommon) Reset()
- func (data *TestCommon) Scan(src any) error
- func (x *TestCommon) String() string
- func (TestCommon) Table() string
- func (data TestCommon) Value() (driver.Value, error)
- type TestInherit
- type TestRequest
- func (*TestRequest) Descriptor() ([]byte, []int)deprecated
- func (x *TestRequest) GetLimit() int32
- func (x *TestRequest) GetMetadata() map[string]string
- func (x *TestRequest) GetNested() *Nested
- func (x *TestRequest) GetQuery() string
- func (x *TestRequest) GetTags() []string
- func (*TestRequest) ProtoMessage()
- func (x *TestRequest) ProtoReflect() protoreflect.Message
- func (x *TestRequest) Reset()
- func (x *TestRequest) String() string
- type TestResponse
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Error_name = map[int32]string{ 0: "InternalServerError", 1: "PermissionDenied", 2: "NotFound", } Error_value = map[string]int32{ "InternalServerError": 0, "PermissionDenied": 1, "NotFound": 2, } )
Enum value maps for Error.
View Source
var File_test_mcp_test_proto protoreflect.FileDescriptor
View Source
var File_test_test_proto protoreflect.FileDescriptor
View Source
var ProtoxMessages = []*doc.Message{ { Name: "TestCommon", Comment: []string{}, Package: "test", Fields: []doc.Field{ { Name: "id", Comment: []string{}, Type: "int64", Required: true, }, { Name: "name", Comment: []string{}, Type: "string", Required: false, Tags: map[string]string{ "db": "name", "op": "eq", }, }, { Name: "Public", Comment: []string{}, Type: "string", Required: false, Tags: map[string]string{ "db": "public", }, }, { Name: "publicId", Comment: []string{ "@gotags: db:\"-\" json:\"id\"\n", }, Type: "string", Required: true, }, { Name: "type", Comment: []string{ "@gotags: db:\"type\"\n", "'enum' | 'message'\n", }, Type: "string", Required: true, }, { Name: "description", Comment: []string{ "@gotags: db:\"description\"\n", }, Type: "string", Required: true, }, { Name: "projectId", Comment: []string{ "@gotags: db:\"fields\"\n", }, Type: "int64", Required: true, }, { Name: "createTime", Comment: []string{ "@gotags: db:\"createTime\"\n", }, Type: "int64", Required: true, }, { Name: "updateTime", Comment: []string{ "@gotags: db:\"updateTime\"\n", }, Type: "int64", Required: true, }, }, }, { Name: "TestInherit", Comment: []string{}, Package: "test", Fields: []doc.Field{ { Name: "type", Comment: []string{}, Type: "int64", Required: true, }, }, }, { Name: "TestRequest", Comment: []string{}, Package: "test", Fields: []doc.Field{ { Name: "query", Comment: []string{}, Type: "string", Required: true, }, { Name: "limit", Comment: []string{}, Type: "int64", Required: true, }, { Name: "nested", Comment: []string{}, Type: "test.Nested", Required: true, }, { Name: "tags", Comment: []string{}, Type: "[]string", Required: true, }, { Name: "metadata", Comment: []string{}, Type: "map[string]string", Required: true, }, }, }, { Name: "Nested", Comment: []string{}, Package: "test", Fields: []doc.Field{ { Name: "active", Comment: []string{}, Type: "bool", Required: true, }, }, }, { Name: "TestResponse", Comment: []string{}, Package: "test", Fields: []doc.Field{ { Name: "result", Comment: []string{}, Type: "string", Required: true, }, }, }, }
View Source
var ProtoxServices = []*doc.Service{ { Name: "TestService", Comment: []string{}, Package: "test", Methods: []doc.Method{ { Name: "TestMethod", Comment: []string{}, Input: &doc.Message{ Name: "TestRequest", Comment: []string{}, Package: "test", Fields: []doc.Field{ { Name: "query", Comment: []string{}, Type: "string", Required: true, }, { Name: "limit", Comment: []string{}, Type: "int64", Required: true, }, { Name: "nested", Comment: []string{}, Type: "test.Nested", Required: true, }, { Name: "tags", Comment: []string{}, Type: "[]string", Required: true, }, { Name: "metadata", Comment: []string{}, Type: "map[string]string", Required: true, }, }, }, Output: &doc.Message{ Name: "TestResponse", Comment: []string{}, Package: "test", Fields: []doc.Field{ { Name: "result", Comment: []string{}, Type: "string", Required: true, }, }, }, }, { Name: "TestMethod22", Comment: []string{}, Input: &doc.Message{ Name: "TestRequest", Comment: []string{}, Package: "test", Fields: []doc.Field{ { Name: "query", Comment: []string{}, Type: "string", Required: true, }, { Name: "limit", Comment: []string{}, Type: "int64", Required: true, }, { Name: "nested", Comment: []string{}, Type: "test.Nested", Required: true, }, { Name: "tags", Comment: []string{}, Type: "[]string", Required: true, }, { Name: "metadata", Comment: []string{}, Type: "map[string]string", Required: true, }, }, }, Output: &doc.Message{ Name: "TestResponse", Comment: []string{}, Package: "test", Fields: []doc.Field{ { Name: "result", Comment: []string{}, Type: "string", Required: true, }, }, }, }, }, }, }
Functions ¶
This section is empty.
Types ¶
type Error ¶ added in v0.0.5
type Error int32
func (Error) Descriptor ¶ added in v0.0.5
func (Error) Descriptor() protoreflect.EnumDescriptor
func (Error) EnumDescriptor
deprecated
added in
v0.0.5
func (Error) Number ¶ added in v0.0.5
func (x Error) Number() protoreflect.EnumNumber
func (Error) Type ¶ added in v0.0.5
func (Error) Type() protoreflect.EnumType
type Nested ¶ added in v0.1.2
type Nested struct {
Active bool `protobuf:"varint,1,opt,name=active,proto3" json:"active,omitempty"`
// contains filtered or unexported fields
}
func (*Nested) Descriptor
deprecated
added in
v0.1.2
func (*Nested) ProtoMessage ¶ added in v0.1.2
func (*Nested) ProtoMessage()
func (*Nested) ProtoReflect ¶ added in v0.1.2
func (x *Nested) ProtoReflect() protoreflect.Message
type TestCommon ¶ added in v0.0.6
type TestCommon struct {
Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
Name *string `protobuf:"bytes,2,opt,name=name,proto3,oneof" json:"name,omitempty" db:"name" op:"eq"`
Public *string `protobuf:"bytes,3,opt,name=Public,proto3,oneof" json:"Public,omitempty" db:"public"`
// @gotags: db:"-" json:"id"
PublicId string `protobuf:"bytes,5,opt,name=publicId,proto3" json:"publicId,omitempty"`
// @gotags: db:"type"
Type string `protobuf:"bytes,8,opt,name=type,proto3" json:"type,omitempty"` // 'enum' | 'message'
// @gotags: db:"description"
Description string `protobuf:"bytes,9,opt,name=description,proto3" json:"description,omitempty"`
// @gotags: db:"fields"
ProjectId int64 `protobuf:"varint,11,opt,name=projectId,proto3" json:"projectId,omitempty"`
// @gotags: db:"createTime"
CreateTime *protox.Timestamp `protobuf:"bytes,12,opt,name=createTime,proto3" json:"createTime,omitempty"`
// @gotags: db:"updateTime"
UpdateTime *protox.Timestamp `protobuf:"bytes,13,opt,name=updateTime,proto3" json:"updateTime,omitempty"`
// contains filtered or unexported fields
}
func (*TestCommon) Descriptor
deprecated
added in
v0.0.6
func (*TestCommon) Descriptor() ([]byte, []int)
Deprecated: Use TestCommon.ProtoReflect.Descriptor instead.
func (TestCommon) Error ¶ added in v0.0.9
func (TestCommon) Error() string
func (*TestCommon) FromJSON ¶ added in v0.0.6
func (x *TestCommon) FromJSON(content []byte) error
func (*TestCommon) GetCreateTime ¶ added in v0.0.6
func (x *TestCommon) GetCreateTime() *protox.Timestamp
func (*TestCommon) GetDescription ¶ added in v0.0.6
func (x *TestCommon) GetDescription() string
func (*TestCommon) GetId ¶ added in v0.0.6
func (x *TestCommon) GetId() int64
func (*TestCommon) GetName ¶ added in v0.0.6
func (x *TestCommon) GetName() string
func (*TestCommon) GetProjectId ¶ added in v0.0.6
func (x *TestCommon) GetProjectId() int64
func (*TestCommon) GetPublic ¶ added in v0.0.6
func (x *TestCommon) GetPublic() string
func (*TestCommon) GetPublicId ¶ added in v0.0.6
func (x *TestCommon) GetPublicId() string
func (*TestCommon) GetType ¶ added in v0.0.6
func (x *TestCommon) GetType() string
func (*TestCommon) GetUpdateTime ¶ added in v0.0.6
func (x *TestCommon) GetUpdateTime() *protox.Timestamp
func (TestCommon) JSON ¶ added in v0.0.6
func (x TestCommon) JSON() ([]byte, error)
func (*TestCommon) ProtoMessage ¶ added in v0.0.6
func (*TestCommon) ProtoMessage()
func (*TestCommon) ProtoReflect ¶ added in v0.0.6
func (x *TestCommon) ProtoReflect() protoreflect.Message
func (*TestCommon) Reset ¶ added in v0.0.6
func (x *TestCommon) Reset()
func (*TestCommon) Scan ¶ added in v0.0.6
func (data *TestCommon) Scan(src any) error
func (*TestCommon) String ¶ added in v0.0.6
func (x *TestCommon) String() string
func (TestCommon) Table ¶ added in v0.0.6
func (TestCommon) Table() string
type TestInherit ¶ added in v0.0.11
type TestInherit struct {
Type int32 `protobuf:"varint,3,opt,name=type,proto3" json:"type,omitempty"`
// contains filtered or unexported fields
}
func (*TestInherit) Descriptor
deprecated
added in
v0.0.11
func (*TestInherit) Descriptor() ([]byte, []int)
Deprecated: Use TestInherit.ProtoReflect.Descriptor instead.
func (*TestInherit) GetType ¶ added in v0.0.11
func (x *TestInherit) GetType() int32
func (*TestInherit) ProtoMessage ¶ added in v0.0.11
func (*TestInherit) ProtoMessage()
func (*TestInherit) ProtoReflect ¶ added in v0.0.11
func (x *TestInherit) ProtoReflect() protoreflect.Message
func (*TestInherit) Reset ¶ added in v0.0.11
func (x *TestInherit) Reset()
func (*TestInherit) String ¶ added in v0.0.11
func (x *TestInherit) String() string
type TestRequest ¶ added in v0.1.2
type TestRequest struct {
Query string `protobuf:"bytes,1,opt,name=query,proto3" json:"query,omitempty"`
Limit int32 `protobuf:"varint,2,opt,name=limit,proto3" json:"limit,omitempty"`
Nested *Nested `protobuf:"bytes,3,opt,name=nested,proto3" json:"nested,omitempty"`
Tags []string `protobuf:"bytes,4,rep,name=tags,proto3" json:"tags,omitempty"`
Metadata map[string]string `` /* 157-byte string literal not displayed */
// contains filtered or unexported fields
}
func (*TestRequest) Descriptor
deprecated
added in
v0.1.2
func (*TestRequest) Descriptor() ([]byte, []int)
Deprecated: Use TestRequest.ProtoReflect.Descriptor instead.
func (*TestRequest) GetLimit ¶ added in v0.1.2
func (x *TestRequest) GetLimit() int32
func (*TestRequest) GetMetadata ¶ added in v0.1.2
func (x *TestRequest) GetMetadata() map[string]string
func (*TestRequest) GetNested ¶ added in v0.1.2
func (x *TestRequest) GetNested() *Nested
func (*TestRequest) GetQuery ¶ added in v0.1.2
func (x *TestRequest) GetQuery() string
func (*TestRequest) GetTags ¶ added in v0.1.2
func (x *TestRequest) GetTags() []string
func (*TestRequest) ProtoMessage ¶ added in v0.1.2
func (*TestRequest) ProtoMessage()
func (*TestRequest) ProtoReflect ¶ added in v0.1.2
func (x *TestRequest) ProtoReflect() protoreflect.Message
func (*TestRequest) Reset ¶ added in v0.1.2
func (x *TestRequest) Reset()
func (*TestRequest) String ¶ added in v0.1.2
func (x *TestRequest) String() string
type TestResponse ¶ added in v0.1.2
type TestResponse struct {
Result string `protobuf:"bytes,1,opt,name=result,proto3" json:"result,omitempty"`
// contains filtered or unexported fields
}
func (*TestResponse) Descriptor
deprecated
added in
v0.1.2
func (*TestResponse) Descriptor() ([]byte, []int)
Deprecated: Use TestResponse.ProtoReflect.Descriptor instead.
func (*TestResponse) GetResult ¶ added in v0.1.2
func (x *TestResponse) GetResult() string
func (*TestResponse) ProtoMessage ¶ added in v0.1.2
func (*TestResponse) ProtoMessage()
func (*TestResponse) ProtoReflect ¶ added in v0.1.2
func (x *TestResponse) ProtoReflect() protoreflect.Message
func (*TestResponse) Reset ¶ added in v0.1.2
func (x *TestResponse) Reset()
func (*TestResponse) String ¶ added in v0.1.2
func (x *TestResponse) String() string
Click to show internal directories.
Click to hide internal directories.