Documentation
¶
Index ¶
- Variables
- type DaprHandler
- func (*DaprHandler) Descriptor() ([]byte, []int)deprecated
- func (x *DaprHandler) GetAlias() string
- func (x *DaprHandler) GetAnnotations() map[string]string
- func (x *DaprHandler) GetComments() []string
- func (x *DaprHandler) GetModule() string
- func (x *DaprHandler) GetModuleKind() DaprModuleKind
- func (x *DaprHandler) GetName() string
- func (x *DaprHandler) GetPkgPath() string
- func (*DaprHandler) ProtoMessage()
- func (x *DaprHandler) ProtoReflect() protoreflect.Message
- func (x *DaprHandler) Reset()
- func (x *DaprHandler) String() string
- type DaprModuleKind
- func (DaprModuleKind) Descriptor() protoreflect.EnumDescriptor
- func (x DaprModuleKind) Enum() *DaprModuleKind
- func (DaprModuleKind) EnumDescriptor() ([]byte, []int)deprecated
- func (x DaprModuleKind) Number() protoreflect.EnumNumber
- func (x DaprModuleKind) String() string
- func (DaprModuleKind) Type() protoreflect.EnumType
- type Error
- type ListParam
- type UpdateRouteRequest
- func (*UpdateRouteRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateRouteRequest) GetApp() string
- func (x *UpdateRouteRequest) GetHandlers() []*DaprHandler
- func (*UpdateRouteRequest) ProtoMessage()
- func (x *UpdateRouteRequest) ProtoReflect() protoreflect.Message
- func (x *UpdateRouteRequest) Reset()
- func (x *UpdateRouteRequest) String() string
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) Descriptor() protoreflect.EnumDescriptor
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 (x DaprModuleKind) Number() protoreflect.EnumNumber
func (DaprModuleKind) String ¶ added in v0.0.8
func (x DaprModuleKind) String() string
func (DaprModuleKind) Type ¶ added in v0.0.13
func (DaprModuleKind) Type() protoreflect.EnumType
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) ProtoMessage ¶
func (*Error) ProtoMessage()
func (*Error) ProtoReflect ¶ added in v0.0.13
func (x *Error) ProtoReflect() protoreflect.Message
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) GetPageSize ¶
func (*ListParam) ProtoMessage ¶
func (*ListParam) ProtoMessage()
func (*ListParam) ProtoReflect ¶ added in v0.0.13
func (x *ListParam) ProtoReflect() protoreflect.Message
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
Click to show internal directories.
Click to hide internal directories.