protobuf

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

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

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

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

Deprecated: Use DaprHandler.ProtoReflect.Descriptor instead.

func (*DaprHandler) GetAlias

func (x *DaprHandler) GetAlias() string

func (*DaprHandler) GetAnnotations

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

func (*DaprHandler) GetComments

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

func (*DaprHandler) GetModule

func (x *DaprHandler) GetModule() string

func (*DaprHandler) GetModuleKind

func (x *DaprHandler) GetModuleKind() DaprModuleKind

func (*DaprHandler) GetName

func (x *DaprHandler) GetName() string

func (*DaprHandler) GetPkgPath

func (x *DaprHandler) GetPkgPath() string

func (*DaprHandler) ProtoMessage

func (*DaprHandler) ProtoMessage()

func (*DaprHandler) ProtoReflect

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

func (*DaprHandler) Reset

func (x *DaprHandler) Reset()

func (*DaprHandler) String

func (x *DaprHandler) String() string

type DaprModuleKind

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

func (DaprModuleKind) Enum

func (x DaprModuleKind) Enum() *DaprModuleKind

func (DaprModuleKind) EnumDescriptor deprecated

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

Deprecated: Use DaprModuleKind.Descriptor instead.

func (DaprModuleKind) Number

func (DaprModuleKind) String

func (x DaprModuleKind) String() string

func (DaprModuleKind) Type

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

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

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

func (*ListParam) Reset

func (x *ListParam) Reset()

func (*ListParam) String

func (x *ListParam) String() string

type UpdateRouteRequest

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

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

Deprecated: Use UpdateRouteRequest.ProtoReflect.Descriptor instead.

func (*UpdateRouteRequest) GetApp

func (x *UpdateRouteRequest) GetApp() string

func (*UpdateRouteRequest) GetHandlers

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

func (*UpdateRouteRequest) ProtoMessage

func (*UpdateRouteRequest) ProtoMessage()

func (*UpdateRouteRequest) ProtoReflect

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

func (*UpdateRouteRequest) Reset

func (x *UpdateRouteRequest) Reset()

func (*UpdateRouteRequest) String

func (x *UpdateRouteRequest) String() string

Jump to

Keyboard shortcuts

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