Help us shape the future of Go! Take the 2026 Go Developer Survey

protobuf

package
v0.1.23 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2026 License: Apache-2.0 Imports: 6 Imported by: 6

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.

Functions

This section is empty.

Types

type DaprHandler

type DaprHandler struct {
	ModuleKind  DaprModuleKind    `protobuf:"varint,1,opt,name=module_kind,json=moduleKind,proto3,enum=protobuf.DaprModuleKind" json:"module_kind,omitempty"` // 模块类型
	PkgPath     string            `protobuf:"bytes,2,opt,name=pkg_path,json=pkgPath,proto3" json:"pkg_path,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"`
	Reason string           `protobuf:"bytes,3,opt,name=reason,proto3" json:"reason,omitempty"`
	Detail *structpb.Struct `protobuf:"bytes,4,opt,name=detail,proto3" json:"detail,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) GetDetail added in v0.1.19

func (x *Error) GetDetail() *structpb.Struct

func (*Error) GetMsg

func (x *Error) GetMsg() string

func (*Error) GetReason added in v0.1.19

func (x *Error) GetReason() 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=page_size,json=pageSize,proto3" json:"page_size,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 RegisterRequest added in v0.1.22

type RegisterRequest 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 (*RegisterRequest) Descriptor deprecated added in v0.1.22

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

Deprecated: Use RegisterRequest.ProtoReflect.Descriptor instead.

func (*RegisterRequest) GetApp added in v0.1.22

func (x *RegisterRequest) GetApp() string

func (*RegisterRequest) GetHandlers added in v0.1.22

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

func (*RegisterRequest) ProtoMessage added in v0.1.22

func (*RegisterRequest) ProtoMessage()

func (*RegisterRequest) ProtoReflect added in v0.1.22

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

func (*RegisterRequest) Reset added in v0.1.22

func (x *RegisterRequest) Reset()

func (*RegisterRequest) String added in v0.1.22

func (x *RegisterRequest) String() string

Jump to

Keyboard shortcuts

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