Documentation
¶
Index ¶
- Variables
- type EnumValueOptions
- func (*EnumValueOptions) Descriptor() ([]byte, []int)deprecated
- func (x *EnumValueOptions) GetHttpStatus() int32
- func (x *EnumValueOptions) GetMessage() string
- func (msg *EnumValueOptions) MarshalJSON() ([]byte, error)
- func (*EnumValueOptions) ProtoMessage()
- func (x *EnumValueOptions) ProtoReflect() protoreflect.Message
- func (x *EnumValueOptions) Reset()
- func (x *EnumValueOptions) String() string
- func (msg *EnumValueOptions) UnmarshalJSON(b []byte) error
- type FieldOptions
- func (*FieldOptions) Descriptor() ([]byte, []int)deprecated
- func (x *FieldOptions) GetSensitive() bool
- func (msg *FieldOptions) MarshalJSON() ([]byte, error)
- func (*FieldOptions) ProtoMessage()
- func (x *FieldOptions) ProtoReflect() protoreflect.Message
- func (x *FieldOptions) Reset()
- func (x *FieldOptions) String() string
- func (msg *FieldOptions) UnmarshalJSON(b []byte) error
- type MessageOptions
- func (*MessageOptions) Descriptor() ([]byte, []int)deprecated
- func (msg *MessageOptions) MarshalJSON() ([]byte, error)
- func (*MessageOptions) ProtoMessage()
- func (x *MessageOptions) ProtoReflect() protoreflect.Message
- func (x *MessageOptions) Reset()
- func (x *MessageOptions) String() string
- func (msg *MessageOptions) UnmarshalJSON(b []byte) error
- type MethodOptions
- func (*MethodOptions) Descriptor() ([]byte, []int)deprecated
- func (x *MethodOptions) GetPermissions() []string
- func (x *MethodOptions) GetSkipAuth() bool
- func (x *MethodOptions) GetSkipLog() bool
- func (msg *MethodOptions) MarshalJSON() ([]byte, error)
- func (*MethodOptions) ProtoMessage()
- func (x *MethodOptions) ProtoReflect() protoreflect.Message
- func (x *MethodOptions) Reset()
- func (x *MethodOptions) String() string
- func (msg *MethodOptions) UnmarshalJSON(b []byte) error
Constants ¶
This section is empty.
Variables ¶
var (
// optional server.options.EnumValueOptions enum_value = 202609126;
E_EnumValue = &file_options_options_proto_extTypes[3]
)
Extension fields to descriptorpb.EnumValueOptions.
var (
// optional server.options.FieldOptions field = 202609127;
E_Field = &file_options_options_proto_extTypes[2]
)
Extension fields to descriptorpb.FieldOptions.
var (
// optional server.options.MessageOptions message = 202609128;
E_Message = &file_options_options_proto_extTypes[1]
)
Extension fields to descriptorpb.MessageOptions.
var (
// optional server.options.MethodOptions method = 202609129;
E_Method = &file_options_options_proto_extTypes[0]
)
Extension fields to descriptorpb.MethodOptions.
var File_options_options_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type EnumValueOptions ¶
type EnumValueOptions struct {
// HandlePath 错误响应使用的 HTTP 状态码
HttpStatus int32 `protobuf:"varint,1,opt,name=http_status,json=httpStatus,proto3" json:"http_status,omitempty"`
// 英文默认错误文案,支持 Go text/template 变量
Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
// contains filtered or unexported fields
}
枚举值选项
func (*EnumValueOptions) Descriptor
deprecated
func (*EnumValueOptions) Descriptor() ([]byte, []int)
Deprecated: Use EnumValueOptions.ProtoReflect.Descriptor instead.
func (*EnumValueOptions) GetHttpStatus ¶
func (x *EnumValueOptions) GetHttpStatus() int32
func (*EnumValueOptions) GetMessage ¶
func (x *EnumValueOptions) GetMessage() string
func (*EnumValueOptions) MarshalJSON ¶
func (msg *EnumValueOptions) MarshalJSON() ([]byte, error)
MarshalJSON implements json.Marshaler.
func (*EnumValueOptions) ProtoMessage ¶
func (*EnumValueOptions) ProtoMessage()
func (*EnumValueOptions) ProtoReflect ¶
func (x *EnumValueOptions) ProtoReflect() protoreflect.Message
func (*EnumValueOptions) Reset ¶
func (x *EnumValueOptions) Reset()
func (*EnumValueOptions) String ¶
func (x *EnumValueOptions) String() string
func (*EnumValueOptions) UnmarshalJSON ¶
func (msg *EnumValueOptions) UnmarshalJSON(b []byte) error
UnmarshalJSON implements json.Unmarshaler.
type FieldOptions ¶
type FieldOptions struct {
// 是否敏感字段
Sensitive bool `protobuf:"varint,1,opt,name=sensitive,proto3" json:"sensitive,omitempty"`
// contains filtered or unexported fields
}
字段选项
func (*FieldOptions) Descriptor
deprecated
func (*FieldOptions) Descriptor() ([]byte, []int)
Deprecated: Use FieldOptions.ProtoReflect.Descriptor instead.
func (*FieldOptions) GetSensitive ¶
func (x *FieldOptions) GetSensitive() bool
func (*FieldOptions) MarshalJSON ¶
func (msg *FieldOptions) MarshalJSON() ([]byte, error)
MarshalJSON implements json.Marshaler.
func (*FieldOptions) ProtoMessage ¶
func (*FieldOptions) ProtoMessage()
func (*FieldOptions) ProtoReflect ¶
func (x *FieldOptions) ProtoReflect() protoreflect.Message
func (*FieldOptions) Reset ¶
func (x *FieldOptions) Reset()
func (*FieldOptions) String ¶
func (x *FieldOptions) String() string
func (*FieldOptions) UnmarshalJSON ¶
func (msg *FieldOptions) UnmarshalJSON(b []byte) error
UnmarshalJSON implements json.Unmarshaler.
type MessageOptions ¶
type MessageOptions struct {
// contains filtered or unexported fields
}
消息选项
func (*MessageOptions) Descriptor
deprecated
func (*MessageOptions) Descriptor() ([]byte, []int)
Deprecated: Use MessageOptions.ProtoReflect.Descriptor instead.
func (*MessageOptions) MarshalJSON ¶
func (msg *MessageOptions) MarshalJSON() ([]byte, error)
MarshalJSON implements json.Marshaler.
func (*MessageOptions) ProtoMessage ¶
func (*MessageOptions) ProtoMessage()
func (*MessageOptions) ProtoReflect ¶
func (x *MessageOptions) ProtoReflect() protoreflect.Message
func (*MessageOptions) Reset ¶
func (x *MessageOptions) Reset()
func (*MessageOptions) String ¶
func (x *MessageOptions) String() string
func (*MessageOptions) UnmarshalJSON ¶
func (msg *MessageOptions) UnmarshalJSON(b []byte) error
UnmarshalJSON implements json.Unmarshaler.
type MethodOptions ¶
type MethodOptions struct {
// 是否跳过认证
SkipAuth bool `protobuf:"varint,1,opt,name=skip_auth,json=skipAuth,proto3" json:"skip_auth,omitempty"`
// 权限标识
Permissions []string `protobuf:"bytes,2,rep,name=permissions,proto3" json:"permissions,omitempty"`
// 是否跳过日志
SkipLog bool `protobuf:"varint,3,opt,name=skip_log,json=skipLog,proto3" json:"skip_log,omitempty"`
// contains filtered or unexported fields
}
方法选项
func (*MethodOptions) Descriptor
deprecated
func (*MethodOptions) Descriptor() ([]byte, []int)
Deprecated: Use MethodOptions.ProtoReflect.Descriptor instead.
func (*MethodOptions) GetPermissions ¶
func (x *MethodOptions) GetPermissions() []string
func (*MethodOptions) GetSkipAuth ¶
func (x *MethodOptions) GetSkipAuth() bool
func (*MethodOptions) GetSkipLog ¶
func (x *MethodOptions) GetSkipLog() bool
func (*MethodOptions) MarshalJSON ¶
func (msg *MethodOptions) MarshalJSON() ([]byte, error)
MarshalJSON implements json.Marshaler.
func (*MethodOptions) ProtoMessage ¶
func (*MethodOptions) ProtoMessage()
func (*MethodOptions) ProtoReflect ¶
func (x *MethodOptions) ProtoReflect() protoreflect.Message
func (*MethodOptions) Reset ¶
func (x *MethodOptions) Reset()
func (*MethodOptions) String ¶
func (x *MethodOptions) String() string
func (*MethodOptions) UnmarshalJSON ¶
func (msg *MethodOptions) UnmarshalJSON(b []byte) error
UnmarshalJSON implements json.Unmarshaler.