Documentation
¶
Index ¶
- Variables
- type GoMethodOption
- func (*GoMethodOption) Descriptor() ([]byte, []int)deprecated
- func (x *GoMethodOption) GetName() string
- func (x *GoMethodOption) GetReturnBool() bool
- func (x *GoMethodOption) GetReturnInt64() int64
- func (x *GoMethodOption) GetReturnString() string
- func (*GoMethodOption) ProtoMessage()
- func (x *GoMethodOption) ProtoReflect() protoreflect.Message
- func (x *GoMethodOption) Reset()
- func (x *GoMethodOption) String() string
- type InheritOption
- func (*InheritOption) Descriptor() ([]byte, []int)deprecated
- func (x *InheritOption) GetMessage() string
- func (x *InheritOption) GetOmit() []string
- func (*InheritOption) ProtoMessage()
- func (x *InheritOption) ProtoReflect() protoreflect.Message
- func (x *InheritOption) Reset()
- func (x *InheritOption) String() string
- type MCPOption
- type OrmOption
- func (*OrmOption) Descriptor() ([]byte, []int)deprecated
- func (x *OrmOption) GetEnable() bool
- func (x *OrmOption) GetFilterMessage() string
- func (x *OrmOption) GetPatchMessage() string
- func (x *OrmOption) GetTable() string
- func (*OrmOption) ProtoMessage()
- func (x *OrmOption) ProtoReflect() protoreflect.Message
- func (x *OrmOption) Reset()
- func (x *OrmOption) String() string
- type SQLOption
- type Timestamp
- func (*Timestamp) Descriptor() ([]byte, []int)deprecated
- func (x *Timestamp) GetMillis() uint64
- func (x Timestamp) MarshalBSONValue() (byte, []byte, error)
- func (x Timestamp) MarshalJSON() ([]byte, error)
- func (*Timestamp) ProtoMessage()
- func (x *Timestamp) ProtoReflect() protoreflect.Message
- func (x *Timestamp) Reset()
- func (x *Timestamp) Scan(src any) error
- func (x *Timestamp) String() string
- func (x *Timestamp) Time() time.Time
- func (x *Timestamp) UnmarshalBSONValue(typ byte, data []byte) error
- func (x *Timestamp) UnmarshalJSON(data []byte) error
- func (x Timestamp) Value() (driver.Value, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // repeated protox.GoMethodOption method = 78901; E_Method = &file_protox_proto_extTypes[1] // optional protox.SQLOption sql = 78902; E_Sql = &file_protox_proto_extTypes[2] // optional protox.InheritOption inherit = 78903; E_Inherit = &file_protox_proto_extTypes[3] // optional protox.OrmOption orm = 78905; E_Orm = &file_protox_proto_extTypes[4] // optional bool doc = 78906; E_Doc = &file_protox_proto_extTypes[5] )
Extension fields to descriptorpb.MessageOptions.
View Source
var ( // optional string json = 78902; E_Json = &file_protox_proto_extTypes[6] // optional string tag = 78904; E_Tag = &file_protox_proto_extTypes[7] // optional string class = 78905; E_Class = &file_protox_proto_extTypes[8] )
Extension fields to descriptorpb.FieldOptions.
View Source
var (
// optional string error = 78903;
E_Error = &file_protox_proto_extTypes[9]
)
Extension fields to descriptorpb.EnumValueOptions.
View Source
var (
// optional protox.MCPOption mcp = 78904;
E_Mcp = &file_protox_proto_extTypes[0]
)
Extension fields to descriptorpb.ServiceOptions.
View Source
var File_protox_proto protoreflect.FileDescriptor
View Source
var ProtoxMessages = []*doc.Message{ { Name: "Timestamp", Comment: []string{}, Package: "protox", Fields: []doc.Field{ { Name: "millis", Comment: []string{}, Type: "uint64", Required: true, }, }, }, { Name: "GoMethodOption", Comment: []string{}, Package: "protox", Fields: []doc.Field{ { Name: "name", Comment: []string{}, Type: "string", Required: true, }, { Name: "returnString", Comment: []string{}, Type: "string", Required: false, }, { Name: "returnInt64", Comment: []string{}, Type: "int64", Required: false, }, { Name: "returnBool", Comment: []string{}, Type: "bool", Required: false, }, }, }, { Name: "SQLOption", Comment: []string{}, Package: "protox", Fields: []doc.Field{ { Name: "serializer", Comment: []string{}, Type: "string", Required: false, }, }, }, { Name: "InheritOption", Comment: []string{}, Package: "protox", Fields: []doc.Field{ { Name: "message", Comment: []string{}, Type: "string", Required: true, }, { Name: "omit", Comment: []string{}, Type: "[]string", Required: true, }, }, }, { Name: "OrmOption", Comment: []string{}, Package: "protox", Fields: []doc.Field{ { Name: "enable", Comment: []string{}, Type: "bool", Required: true, }, { Name: "table", Comment: []string{}, Type: "string", Required: false, }, { Name: "filterMessage", Comment: []string{}, Type: "string", Required: false, }, { Name: "patchMessage", Comment: []string{}, Type: "string", Required: false, }, }, }, { Name: "MCPOption", Comment: []string{}, Package: "protox", Fields: []doc.Field{ { Name: "enable", Comment: []string{}, Type: "bool", Required: true, }, }, }, }
View Source
var ProtoxServices = []*doc.Service{}
Functions ¶
This section is empty.
Types ¶
type GoMethodOption ¶
type GoMethodOption struct {
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
ReturnString *string `protobuf:"bytes,2,opt,name=returnString,proto3,oneof" json:"returnString,omitempty"`
ReturnInt64 *int64 `protobuf:"varint,3,opt,name=returnInt64,proto3,oneof" json:"returnInt64,omitempty"`
ReturnBool *bool `protobuf:"varint,4,opt,name=returnBool,proto3,oneof" json:"returnBool,omitempty"`
// contains filtered or unexported fields
}
func (*GoMethodOption) Descriptor
deprecated
func (*GoMethodOption) Descriptor() ([]byte, []int)
Deprecated: Use GoMethodOption.ProtoReflect.Descriptor instead.
func (*GoMethodOption) GetName ¶
func (x *GoMethodOption) GetName() string
func (*GoMethodOption) GetReturnBool ¶ added in v0.0.9
func (x *GoMethodOption) GetReturnBool() bool
func (*GoMethodOption) GetReturnInt64 ¶ added in v0.0.9
func (x *GoMethodOption) GetReturnInt64() int64
func (*GoMethodOption) GetReturnString ¶ added in v0.0.9
func (x *GoMethodOption) GetReturnString() string
func (*GoMethodOption) ProtoMessage ¶
func (*GoMethodOption) ProtoMessage()
func (*GoMethodOption) ProtoReflect ¶
func (x *GoMethodOption) ProtoReflect() protoreflect.Message
func (*GoMethodOption) Reset ¶
func (x *GoMethodOption) Reset()
func (*GoMethodOption) String ¶
func (x *GoMethodOption) String() string
type InheritOption ¶ added in v0.0.11
type InheritOption struct {
Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"`
Omit []string `protobuf:"bytes,2,rep,name=omit,proto3" json:"omit,omitempty"`
// contains filtered or unexported fields
}
func (*InheritOption) Descriptor
deprecated
added in
v0.0.11
func (*InheritOption) Descriptor() ([]byte, []int)
Deprecated: Use InheritOption.ProtoReflect.Descriptor instead.
func (*InheritOption) GetMessage ¶ added in v0.0.11
func (x *InheritOption) GetMessage() string
func (*InheritOption) GetOmit ¶ added in v0.0.11
func (x *InheritOption) GetOmit() []string
func (*InheritOption) ProtoMessage ¶ added in v0.0.11
func (*InheritOption) ProtoMessage()
func (*InheritOption) ProtoReflect ¶ added in v0.0.11
func (x *InheritOption) ProtoReflect() protoreflect.Message
func (*InheritOption) Reset ¶ added in v0.0.11
func (x *InheritOption) Reset()
func (*InheritOption) String ¶ added in v0.0.11
func (x *InheritOption) String() string
type MCPOption ¶ added in v0.1.2
type MCPOption struct {
Enable bool `protobuf:"varint,1,opt,name=enable,proto3" json:"enable,omitempty"`
// contains filtered or unexported fields
}
func (*MCPOption) Descriptor
deprecated
added in
v0.1.2
func (*MCPOption) ProtoMessage ¶ added in v0.1.2
func (*MCPOption) ProtoMessage()
func (*MCPOption) ProtoReflect ¶ added in v0.1.2
func (x *MCPOption) ProtoReflect() protoreflect.Message
type OrmOption ¶ added in v0.0.22
type OrmOption struct {
Enable bool `protobuf:"varint,2,opt,name=enable,proto3" json:"enable,omitempty"`
Table *string `protobuf:"bytes,3,opt,name=table,proto3,oneof" json:"table,omitempty"`
FilterMessage *string `protobuf:"bytes,4,opt,name=filterMessage,proto3,oneof" json:"filterMessage,omitempty"`
PatchMessage *string `protobuf:"bytes,5,opt,name=patchMessage,proto3,oneof" json:"patchMessage,omitempty"`
// contains filtered or unexported fields
}
func (*OrmOption) Descriptor
deprecated
added in
v0.0.22
func (*OrmOption) GetFilterMessage ¶ added in v0.0.22
func (*OrmOption) GetPatchMessage ¶ added in v0.0.22
func (*OrmOption) ProtoMessage ¶ added in v0.0.22
func (*OrmOption) ProtoMessage()
func (*OrmOption) ProtoReflect ¶ added in v0.0.22
func (x *OrmOption) ProtoReflect() protoreflect.Message
type SQLOption ¶
type SQLOption struct {
Serializer *string `protobuf:"bytes,2,opt,name=serializer,proto3,oneof" json:"serializer,omitempty"`
// contains filtered or unexported fields
}
func (*SQLOption) Descriptor
deprecated
func (*SQLOption) GetSerializer ¶
func (*SQLOption) ProtoMessage ¶
func (*SQLOption) ProtoMessage()
func (*SQLOption) ProtoReflect ¶
func (x *SQLOption) ProtoReflect() protoreflect.Message
type Timestamp ¶
type Timestamp struct {
Millis uint64 `protobuf:"varint,1,opt,name=millis,proto3" json:"millis,omitempty"`
// contains filtered or unexported fields
}
func (*Timestamp) Descriptor
deprecated
func (Timestamp) MarshalBSONValue ¶ added in v0.0.20
func (Timestamp) MarshalJSON ¶
func (*Timestamp) ProtoMessage ¶
func (*Timestamp) ProtoMessage()
func (*Timestamp) ProtoReflect ¶
func (x *Timestamp) ProtoReflect() protoreflect.Message
func (*Timestamp) UnmarshalBSONValue ¶ added in v0.0.20
func (*Timestamp) UnmarshalJSON ¶
Click to show internal directories.
Click to hide internal directories.