protobuf

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2025 License: Apache-2.0 Imports: 5 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthErr        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowErr          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupErr = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthSdk        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowSdk          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupSdk = fmt.Errorf("proto: unexpected end of group")
)
View Source
var BoolValue_name = map[int32]string{
	0: "BoolValueFalse",
	1: "BoolValueTrue",
}
View Source
var BoolValue_value = map[string]int32{
	"BoolValueFalse": 0,
	"BoolValueTrue":  1,
}
View Source
var EnableStatus_name = map[int32]string{
	0: "EnableStatusDisabled",
	1: "EnableStatusEnabled",
}
View Source
var EnableStatus_value = map[string]int32{
	"EnableStatusDisabled": 0,
	"EnableStatusEnabled":  1,
}
View Source
var VerifyStatus_name = map[int32]string{
	0: "VerifyStatusUnverified",
	1: "VerifyStatusVerified",
}
View Source
var VerifyStatus_value = map[string]int32{
	"VerifyStatusUnverified": 0,
	"VerifyStatusVerified":   1,
}

Functions

This section is empty.

Types

type BoolValue added in v0.0.7

type BoolValue int32
const (
	BoolValue_BoolValueFalse BoolValue = 0
	BoolValue_BoolValueTrue  BoolValue = 1
)

func (BoolValue) EnumDescriptor added in v0.0.7

func (BoolValue) EnumDescriptor() ([]byte, []int)

func (BoolValue) String added in v0.0.7

func (x BoolValue) String() string

type EmptyRequest added in v0.0.7

type EmptyRequest struct {
}

func (*EmptyRequest) Descriptor added in v0.0.7

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

func (*EmptyRequest) Marshal added in v0.0.7

func (m *EmptyRequest) Marshal() (dAtA []byte, err error)

func (*EmptyRequest) MarshalTo added in v0.0.7

func (m *EmptyRequest) MarshalTo(dAtA []byte) (int, error)

func (*EmptyRequest) MarshalToSizedBuffer added in v0.0.7

func (m *EmptyRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*EmptyRequest) ProtoMessage added in v0.0.7

func (*EmptyRequest) ProtoMessage()

func (*EmptyRequest) Reset added in v0.0.7

func (m *EmptyRequest) Reset()

func (*EmptyRequest) Size added in v0.0.7

func (m *EmptyRequest) Size() (n int)

func (*EmptyRequest) String added in v0.0.7

func (m *EmptyRequest) String() string

func (*EmptyRequest) Unmarshal added in v0.0.7

func (m *EmptyRequest) Unmarshal(dAtA []byte) error

func (*EmptyRequest) XXX_DiscardUnknown added in v0.0.7

func (m *EmptyRequest) XXX_DiscardUnknown()

func (*EmptyRequest) XXX_Marshal added in v0.0.7

func (m *EmptyRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*EmptyRequest) XXX_Merge added in v0.0.7

func (m *EmptyRequest) XXX_Merge(src proto.Message)

func (*EmptyRequest) XXX_Size added in v0.0.7

func (m *EmptyRequest) XXX_Size() int

func (*EmptyRequest) XXX_Unmarshal added in v0.0.7

func (m *EmptyRequest) XXX_Unmarshal(b []byte) error

type EmptyResponse added in v0.0.7

type EmptyResponse struct {
}

func (*EmptyResponse) Descriptor added in v0.0.7

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

func (*EmptyResponse) Marshal added in v0.0.7

func (m *EmptyResponse) Marshal() (dAtA []byte, err error)

func (*EmptyResponse) MarshalTo added in v0.0.7

func (m *EmptyResponse) MarshalTo(dAtA []byte) (int, error)

func (*EmptyResponse) MarshalToSizedBuffer added in v0.0.7

func (m *EmptyResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*EmptyResponse) ProtoMessage added in v0.0.7

func (*EmptyResponse) ProtoMessage()

func (*EmptyResponse) Reset added in v0.0.7

func (m *EmptyResponse) Reset()

func (*EmptyResponse) Size added in v0.0.7

func (m *EmptyResponse) Size() (n int)

func (*EmptyResponse) String added in v0.0.7

func (m *EmptyResponse) String() string

func (*EmptyResponse) Unmarshal added in v0.0.7

func (m *EmptyResponse) Unmarshal(dAtA []byte) error

func (*EmptyResponse) XXX_DiscardUnknown added in v0.0.7

func (m *EmptyResponse) XXX_DiscardUnknown()

func (*EmptyResponse) XXX_Marshal added in v0.0.7

func (m *EmptyResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*EmptyResponse) XXX_Merge added in v0.0.7

func (m *EmptyResponse) XXX_Merge(src proto.Message)

func (*EmptyResponse) XXX_Size added in v0.0.7

func (m *EmptyResponse) XXX_Size() int

func (*EmptyResponse) XXX_Unmarshal added in v0.0.7

func (m *EmptyResponse) XXX_Unmarshal(b []byte) error

type EnableStatus added in v0.0.7

type EnableStatus int32
const (
	EnableStatus_EnableStatusDisabled EnableStatus = 0
	EnableStatus_EnableStatusEnabled  EnableStatus = 1
)

func (EnableStatus) EnumDescriptor added in v0.0.7

func (EnableStatus) EnumDescriptor() ([]byte, []int)

func (EnableStatus) String added in v0.0.7

func (x EnableStatus) String() string

type Error

type Error struct {
	Code int32  `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"`
	Msg  string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"`
}

func (*Error) Descriptor

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

func (*Error) GetCode

func (m *Error) GetCode() int32

func (*Error) GetMsg

func (m *Error) GetMsg() string

func (*Error) Marshal

func (m *Error) Marshal() (dAtA []byte, err error)

func (*Error) MarshalTo

func (m *Error) MarshalTo(dAtA []byte) (int, error)

func (*Error) MarshalToSizedBuffer

func (m *Error) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Error) ProtoMessage

func (*Error) ProtoMessage()

func (*Error) Reset

func (m *Error) Reset()

func (*Error) Size

func (m *Error) Size() (n int)

func (*Error) String

func (m *Error) String() string

func (*Error) Unmarshal

func (m *Error) Unmarshal(dAtA []byte) error

func (*Error) XXX_DiscardUnknown

func (m *Error) XXX_DiscardUnknown()

func (*Error) XXX_Marshal

func (m *Error) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Error) XXX_Merge

func (m *Error) XXX_Merge(src proto.Message)

func (*Error) XXX_Size

func (m *Error) XXX_Size() int

func (*Error) XXX_Unmarshal

func (m *Error) XXX_Unmarshal(b []byte) error

type ListParam

type ListParam struct {
	Page     int64 `protobuf:"varint,1,opt,name=page,proto3" json:"page,omitempty"`
	PageSize int64 `protobuf:"varint,2,opt,name=pageSize,proto3" json:"pageSize,omitempty"`
}

按limit分页

func (*ListParam) Descriptor

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

func (*ListParam) GetPage

func (m *ListParam) GetPage() int64

func (*ListParam) GetPageSize

func (m *ListParam) GetPageSize() int64

func (*ListParam) Marshal

func (m *ListParam) Marshal() (dAtA []byte, err error)

func (*ListParam) MarshalTo

func (m *ListParam) MarshalTo(dAtA []byte) (int, error)

func (*ListParam) MarshalToSizedBuffer

func (m *ListParam) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*ListParam) ProtoMessage

func (*ListParam) ProtoMessage()

func (*ListParam) Reset

func (m *ListParam) Reset()

func (*ListParam) Size

func (m *ListParam) Size() (n int)

func (*ListParam) String

func (m *ListParam) String() string

func (*ListParam) Unmarshal

func (m *ListParam) Unmarshal(dAtA []byte) error

func (*ListParam) XXX_DiscardUnknown

func (m *ListParam) XXX_DiscardUnknown()

func (*ListParam) XXX_Marshal

func (m *ListParam) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ListParam) XXX_Merge

func (m *ListParam) XXX_Merge(src proto.Message)

func (*ListParam) XXX_Size

func (m *ListParam) XXX_Size() int

func (*ListParam) XXX_Unmarshal

func (m *ListParam) XXX_Unmarshal(b []byte) error

type RouteItem

type RouteItem struct {
	Id            int64    `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	App           string   `protobuf:"bytes,2,opt,name=app,proto3" json:"app,omitempty"`
	ModuleName    string   `protobuf:"bytes,3,opt,name=moduleName,proto3" json:"moduleName,omitempty"`
	ModuleVersion int32    `protobuf:"varint,4,opt,name=moduleVersion,proto3" json:"moduleVersion,omitempty"`
	Handler       string   `protobuf:"bytes,5,opt,name=handler,proto3" json:"handler,omitempty"`
	Endpoint      string   `protobuf:"bytes,6,opt,name=endpoint,proto3" json:"endpoint,omitempty"`
	HttpMethod    string   `protobuf:"bytes,7,opt,name=httpMethod,proto3" json:"httpMethod,omitempty"`
	Origin        string   `protobuf:"bytes,8,opt,name=origin,proto3" json:"origin,omitempty"`
	IsPublic      int32    `protobuf:"varint,9,opt,name=isPublic,proto3" json:"isPublic,omitempty"`
	IsRawResponse int32    `protobuf:"varint,10,opt,name=isRawResponse,proto3" json:"isRawResponse,omitempty"`
	Permissions   []string `protobuf:"bytes,11,rep,name=permissions,proto3" json:"permissions,omitempty"`
	Url           string   `protobuf:"bytes,12,opt,name=url,proto3" json:"url,omitempty"`
	Comment       string   `protobuf:"bytes,13,opt,name=comment,proto3" json:"comment,omitempty"`
}

路由项

func (*RouteItem) Descriptor

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

func (*RouteItem) GetApp

func (m *RouteItem) GetApp() string

func (*RouteItem) GetComment

func (m *RouteItem) GetComment() string

func (*RouteItem) GetEndpoint

func (m *RouteItem) GetEndpoint() string

func (*RouteItem) GetHandler

func (m *RouteItem) GetHandler() string

func (*RouteItem) GetHttpMethod

func (m *RouteItem) GetHttpMethod() string

func (*RouteItem) GetId

func (m *RouteItem) GetId() int64

func (*RouteItem) GetIsPublic

func (m *RouteItem) GetIsPublic() int32

func (*RouteItem) GetIsRawResponse

func (m *RouteItem) GetIsRawResponse() int32

func (*RouteItem) GetModuleName

func (m *RouteItem) GetModuleName() string

func (*RouteItem) GetModuleVersion

func (m *RouteItem) GetModuleVersion() int32

func (*RouteItem) GetOrigin

func (m *RouteItem) GetOrigin() string

func (*RouteItem) GetPermissions

func (m *RouteItem) GetPermissions() []string

func (*RouteItem) GetUrl

func (m *RouteItem) GetUrl() string

func (*RouteItem) Marshal

func (m *RouteItem) Marshal() (dAtA []byte, err error)

func (*RouteItem) MarshalTo

func (m *RouteItem) MarshalTo(dAtA []byte) (int, error)

func (*RouteItem) MarshalToSizedBuffer

func (m *RouteItem) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*RouteItem) ProtoMessage

func (*RouteItem) ProtoMessage()

func (*RouteItem) Reset

func (m *RouteItem) Reset()

func (*RouteItem) Size

func (m *RouteItem) Size() (n int)

func (*RouteItem) String

func (m *RouteItem) String() string

func (*RouteItem) Unmarshal

func (m *RouteItem) Unmarshal(dAtA []byte) error

func (*RouteItem) XXX_DiscardUnknown

func (m *RouteItem) XXX_DiscardUnknown()

func (*RouteItem) XXX_Marshal

func (m *RouteItem) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*RouteItem) XXX_Merge

func (m *RouteItem) XXX_Merge(src proto.Message)

func (*RouteItem) XXX_Size

func (m *RouteItem) XXX_Size() int

func (*RouteItem) XXX_Unmarshal

func (m *RouteItem) XXX_Unmarshal(b []byte) error

type SimpleResponse added in v0.0.7

type SimpleResponse struct {
	Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"`
}

func (*SimpleResponse) Descriptor added in v0.0.7

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

func (*SimpleResponse) GetMessage added in v0.0.7

func (m *SimpleResponse) GetMessage() string

func (*SimpleResponse) Marshal added in v0.0.7

func (m *SimpleResponse) Marshal() (dAtA []byte, err error)

func (*SimpleResponse) MarshalTo added in v0.0.7

func (m *SimpleResponse) MarshalTo(dAtA []byte) (int, error)

func (*SimpleResponse) MarshalToSizedBuffer added in v0.0.7

func (m *SimpleResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*SimpleResponse) ProtoMessage added in v0.0.7

func (*SimpleResponse) ProtoMessage()

func (*SimpleResponse) Reset added in v0.0.7

func (m *SimpleResponse) Reset()

func (*SimpleResponse) Size added in v0.0.7

func (m *SimpleResponse) Size() (n int)

func (*SimpleResponse) String added in v0.0.7

func (m *SimpleResponse) String() string

func (*SimpleResponse) Unmarshal added in v0.0.7

func (m *SimpleResponse) Unmarshal(dAtA []byte) error

func (*SimpleResponse) XXX_DiscardUnknown added in v0.0.7

func (m *SimpleResponse) XXX_DiscardUnknown()

func (*SimpleResponse) XXX_Marshal added in v0.0.7

func (m *SimpleResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*SimpleResponse) XXX_Merge added in v0.0.7

func (m *SimpleResponse) XXX_Merge(src proto.Message)

func (*SimpleResponse) XXX_Size added in v0.0.7

func (m *SimpleResponse) XXX_Size() int

func (*SimpleResponse) XXX_Unmarshal added in v0.0.7

func (m *SimpleResponse) XXX_Unmarshal(b []byte) error

type VerifyStatus added in v0.0.7

type VerifyStatus int32
const (
	VerifyStatus_VerifyStatusUnverified VerifyStatus = 0
	VerifyStatus_VerifyStatusVerified   VerifyStatus = 1
)

func (VerifyStatus) EnumDescriptor added in v0.0.7

func (VerifyStatus) EnumDescriptor() ([]byte, []int)

func (VerifyStatus) String added in v0.0.7

func (x VerifyStatus) String() string

Jump to

Keyboard shortcuts

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