options

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2026 License: Apache-2.0 Imports: 7 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// optional server.options.EnumValueOptions enum_value = 202609126;
	E_EnumValue = &file_options_options_proto_extTypes[3]
)

Extension fields to descriptorpb.EnumValueOptions.

View Source
var (
	// optional server.options.FieldOptions field = 202609127;
	E_Field = &file_options_options_proto_extTypes[2]
)

Extension fields to descriptorpb.FieldOptions.

View Source
var (
	// optional server.options.MessageOptions message = 202609128;
	E_Message = &file_options_options_proto_extTypes[1]
)

Extension fields to descriptorpb.MessageOptions.

View Source
var (
	// optional server.options.MethodOptions method = 202609129;
	E_Method = &file_options_options_proto_extTypes[0]
)

Extension fields to descriptorpb.MethodOptions.

View Source
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 {

	// 是否将整个消息作为敏感数据
	Sensitive bool `protobuf:"varint,1,opt,name=sensitive,proto3" json:"sensitive,omitempty"`
	// contains filtered or unexported fields
}

消息选项

func (*MessageOptions) Descriptor deprecated

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

Deprecated: Use MessageOptions.ProtoReflect.Descriptor instead.

func (*MessageOptions) GetSensitive added in v1.4.3

func (x *MessageOptions) GetSensitive() bool

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"`
	// 审计类型;非空时调用业务注入的审计方法
	AuditKind string `protobuf:"bytes,4,opt,name=audit_kind,json=auditKind,proto3" json:"audit_kind,omitempty"`
	// contains filtered or unexported fields
}

方法选项

func (*MethodOptions) Descriptor deprecated

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

Deprecated: Use MethodOptions.ProtoReflect.Descriptor instead.

func (*MethodOptions) GetAuditKind added in v1.4.3

func (x *MethodOptions) GetAuditKind() string

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.

Jump to

Keyboard shortcuts

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