protobuf

package
v0.0.22 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	DaprModuleKind_name = map[int32]string{
		0: "DaprModuleKindUnknown",
		1: "DaprModuleKindInvocation",
		2: "DaprModuleKindEvent",
		3: "DaprModuleKindDelayEvent",
		4: "DaprModuleKindHealth",
	}
	DaprModuleKind_value = map[string]int32{
		"DaprModuleKindUnknown":    0,
		"DaprModuleKindInvocation": 1,
		"DaprModuleKindEvent":      2,
		"DaprModuleKindDelayEvent": 3,
		"DaprModuleKindHealth":     4,
	}
)

Enum value maps for DaprModuleKind.

View Source
var File_proto_sdk_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type DaprHandler added in v0.0.8

type DaprHandler struct {
	ModuleKind  DaprModuleKind    `protobuf:"varint,1,opt,name=moduleKind,proto3,enum=protobuf.DaprModuleKind" json:"moduleKind,omitempty"` // 模块类型
	PkgPath     string            `protobuf:"bytes,2,opt,name=pkgPath,proto3" json:"pkgPath,omitempty"`                                     // 包路径
	Module      string            `protobuf:"bytes,3,opt,name=module,proto3" json:"module,omitempty"`                                       // 模块名
	Name        string            `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"`                                           // 处理函数名
	Alias       string            `protobuf:"bytes,5,opt,name=alias,proto3" json:"alias,omitempty"`                                         // 处理函数别名
	Annotations map[string]string ``                                                                                                        // 注解
	/* 149-byte string literal not displayed */
	Comments []string `protobuf:"bytes,6,rep,name=comments,proto3" json:"comments,omitempty"` // 注释
	// contains filtered or unexported fields
}

func (*DaprHandler) Descriptor deprecated added in v0.0.8

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

Deprecated: Use DaprHandler.ProtoReflect.Descriptor instead.

func (*DaprHandler) GetAlias added in v0.0.8

func (x *DaprHandler) GetAlias() string

func (*DaprHandler) GetAnnotations added in v0.0.8

func (x *DaprHandler) GetAnnotations() map[string]string

func (*DaprHandler) GetComments added in v0.0.8

func (x *DaprHandler) GetComments() []string

func (*DaprHandler) GetModule added in v0.0.8

func (x *DaprHandler) GetModule() string

func (*DaprHandler) GetModuleKind added in v0.0.8

func (x *DaprHandler) GetModuleKind() DaprModuleKind

func (*DaprHandler) GetName added in v0.0.8

func (x *DaprHandler) GetName() string

func (*DaprHandler) GetPkgPath added in v0.0.8

func (x *DaprHandler) GetPkgPath() string

func (*DaprHandler) ProtoMessage added in v0.0.8

func (*DaprHandler) ProtoMessage()

func (*DaprHandler) ProtoReflect added in v0.0.13

func (x *DaprHandler) ProtoReflect() protoreflect.Message

func (*DaprHandler) Reset added in v0.0.8

func (x *DaprHandler) Reset()

func (*DaprHandler) String added in v0.0.8

func (x *DaprHandler) String() string

type DaprModuleKind added in v0.0.8

type DaprModuleKind int32
const (
	DaprModuleKind_DaprModuleKindUnknown    DaprModuleKind = 0
	DaprModuleKind_DaprModuleKindInvocation DaprModuleKind = 1
	DaprModuleKind_DaprModuleKindEvent      DaprModuleKind = 2
	DaprModuleKind_DaprModuleKindDelayEvent DaprModuleKind = 3
	DaprModuleKind_DaprModuleKindHealth     DaprModuleKind = 4
)

func (DaprModuleKind) Descriptor added in v0.0.13

func (DaprModuleKind) Enum added in v0.0.13

func (x DaprModuleKind) Enum() *DaprModuleKind

func (DaprModuleKind) EnumDescriptor deprecated added in v0.0.8

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

Deprecated: Use DaprModuleKind.Descriptor instead.

func (DaprModuleKind) Number added in v0.0.13

func (DaprModuleKind) String added in v0.0.8

func (x DaprModuleKind) String() string

func (DaprModuleKind) Type added in v0.0.13

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"`
	// contains filtered or unexported fields
}

func (*Error) Descriptor deprecated

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

Deprecated: Use Error.ProtoReflect.Descriptor instead.

func (*Error) GetCode

func (x *Error) GetCode() int32

func (*Error) GetMsg

func (x *Error) GetMsg() string

func (*Error) ProtoMessage

func (*Error) ProtoMessage()

func (*Error) ProtoReflect added in v0.0.13

func (x *Error) ProtoReflect() protoreflect.Message

func (*Error) Reset

func (x *Error) Reset()

func (*Error) String

func (x *Error) String() string

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"` // 每页数量
	// contains filtered or unexported fields
}

按limit分页

func (*ListParam) Descriptor deprecated

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

Deprecated: Use ListParam.ProtoReflect.Descriptor instead.

func (*ListParam) GetPage

func (x *ListParam) GetPage() int64

func (*ListParam) GetPageSize

func (x *ListParam) GetPageSize() int64

func (*ListParam) ProtoMessage

func (*ListParam) ProtoMessage()

func (*ListParam) ProtoReflect added in v0.0.13

func (x *ListParam) ProtoReflect() protoreflect.Message

func (*ListParam) Reset

func (x *ListParam) Reset()

func (*ListParam) String

func (x *ListParam) String() string

type UpdateRouteRequest added in v0.0.9

type UpdateRouteRequest struct {
	App      string         `protobuf:"bytes,1,opt,name=app,proto3" json:"app,omitempty"`           // 应用名
	Handlers []*DaprHandler `protobuf:"bytes,2,rep,name=handlers,proto3" json:"handlers,omitempty"` // AST解析后保存的Dapr处理函数列表
	// contains filtered or unexported fields
}

func (*UpdateRouteRequest) Descriptor deprecated added in v0.0.9

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

Deprecated: Use UpdateRouteRequest.ProtoReflect.Descriptor instead.

func (*UpdateRouteRequest) GetApp added in v0.0.9

func (x *UpdateRouteRequest) GetApp() string

func (*UpdateRouteRequest) GetHandlers added in v0.0.9

func (x *UpdateRouteRequest) GetHandlers() []*DaprHandler

func (*UpdateRouteRequest) ProtoMessage added in v0.0.9

func (*UpdateRouteRequest) ProtoMessage()

func (*UpdateRouteRequest) ProtoReflect added in v0.0.13

func (x *UpdateRouteRequest) ProtoReflect() protoreflect.Message

func (*UpdateRouteRequest) Reset added in v0.0.9

func (x *UpdateRouteRequest) Reset()

func (*UpdateRouteRequest) String added in v0.0.9

func (x *UpdateRouteRequest) String() string

Jump to

Keyboard shortcuts

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