Documentation
¶
Index ¶
- Variables
- type AsyncResolveRequest
- func (*AsyncResolveRequest) Descriptor() ([]byte, []int)deprecated
- func (x *AsyncResolveRequest) GetTaskId() uint64
- func (*AsyncResolveRequest) ProtoMessage()
- func (x *AsyncResolveRequest) ProtoReflect() protoreflect.Message
- func (x *AsyncResolveRequest) Reset()
- func (x *AsyncResolveRequest) String() string
- type AsyncResolveResponse
- func (*AsyncResolveResponse) Descriptor() ([]byte, []int)deprecated
- func (x *AsyncResolveResponse) GetDone() bool
- func (x *AsyncResolveResponse) GetError() string
- func (x *AsyncResolveResponse) GetResult() []byte
- func (x *AsyncResolveResponse) GetTaskId() uint64
- func (*AsyncResolveResponse) ProtoMessage()
- func (x *AsyncResolveResponse) ProtoReflect() protoreflect.Message
- func (x *AsyncResolveResponse) Reset()
- func (x *AsyncResolveResponse) String() string
- type AsyncSubmitRequest
- func (*AsyncSubmitRequest) Descriptor() ([]byte, []int)deprecated
- func (x *AsyncSubmitRequest) GetOpType() string
- func (x *AsyncSubmitRequest) GetParams() []byte
- func (*AsyncSubmitRequest) ProtoMessage()
- func (x *AsyncSubmitRequest) ProtoReflect() protoreflect.Message
- func (x *AsyncSubmitRequest) Reset()
- func (x *AsyncSubmitRequest) String() string
- type AsyncSubmitResponse
- func (*AsyncSubmitResponse) Descriptor() ([]byte, []int)deprecated
- func (x *AsyncSubmitResponse) GetTaskId() uint64
- func (*AsyncSubmitResponse) ProtoMessage()
- func (x *AsyncSubmitResponse) ProtoReflect() protoreflect.Message
- func (x *AsyncSubmitResponse) Reset()
- func (x *AsyncSubmitResponse) String() string
- type AsyncWaitAnyRequest
- type AsyncWaitAnyResponse
- func (*AsyncWaitAnyResponse) Descriptor() ([]byte, []int)deprecated
- func (x *AsyncWaitAnyResponse) GetTaskId() uint64
- func (*AsyncWaitAnyResponse) ProtoMessage()
- func (x *AsyncWaitAnyResponse) ProtoReflect() protoreflect.Message
- func (x *AsyncWaitAnyResponse) Reset()
- func (x *AsyncWaitAnyResponse) String() string
- type BoolResult
- type ConfigGetRequest
- type ConfigGetResponse
- func (*ConfigGetResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ConfigGetResponse) GetExists() bool
- func (x *ConfigGetResponse) GetValue() string
- func (*ConfigGetResponse) ProtoMessage()
- func (x *ConfigGetResponse) ProtoReflect() protoreflect.Message
- func (x *ConfigGetResponse) Reset()
- func (x *ConfigGetResponse) String() string
- type DbQueryRequest
- func (*DbQueryRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DbQueryRequest) GetConditions() *structpb.Struct
- func (x *DbQueryRequest) GetFields() *fieldmaskpb.FieldMask
- func (x *DbQueryRequest) GetLimit() int32
- func (x *DbQueryRequest) GetModel() string
- func (x *DbQueryRequest) GetOffset() int32
- func (x *DbQueryRequest) GetOperation() string
- func (*DbQueryRequest) ProtoMessage()
- func (x *DbQueryRequest) ProtoReflect() protoreflect.Message
- func (x *DbQueryRequest) Reset()
- func (x *DbQueryRequest) String() string
- type DbQueryResponse
- func (*DbQueryResponse) Descriptor() ([]byte, []int)deprecated
- func (x *DbQueryResponse) GetError() string
- func (x *DbQueryResponse) GetRows() []*structpb.Struct
- func (x *DbQueryResponse) GetTotal() int64
- func (*DbQueryResponse) ProtoMessage()
- func (x *DbQueryResponse) ProtoReflect() protoreflect.Message
- func (x *DbQueryResponse) Reset()
- func (x *DbQueryResponse) String() string
- type EmitEventRequest
- func (*EmitEventRequest) Descriptor() ([]byte, []int)deprecated
- func (x *EmitEventRequest) GetEvent() string
- func (x *EmitEventRequest) GetPayload() *structpb.Struct
- func (*EmitEventRequest) ProtoMessage()
- func (x *EmitEventRequest) ProtoReflect() protoreflect.Message
- func (x *EmitEventRequest) Reset()
- func (x *EmitEventRequest) String() string
- type Empty
- type EnqueueTaskRequest
- func (*EnqueueTaskRequest) Descriptor() ([]byte, []int)deprecated
- func (x *EnqueueTaskRequest) GetPayload() *structpb.Struct
- func (x *EnqueueTaskRequest) GetTaskName() string
- func (*EnqueueTaskRequest) ProtoMessage()
- func (x *EnqueueTaskRequest) ProtoReflect() protoreflect.Message
- func (x *EnqueueTaskRequest) Reset()
- func (x *EnqueueTaskRequest) String() string
- type HandleRequest
- func (*HandleRequest) Descriptor() ([]byte, []int)deprecated
- func (x *HandleRequest) GetBody() []byte
- func (x *HandleRequest) GetContext() *RequestContext
- func (x *HandleRequest) GetHeaders() map[string]*StringList
- func (x *HandleRequest) GetMethod() string
- func (x *HandleRequest) GetPath() string
- func (x *HandleRequest) GetQuery() map[string]*StringList
- func (*HandleRequest) ProtoMessage()
- func (x *HandleRequest) ProtoReflect() protoreflect.Message
- func (x *HandleRequest) Reset()
- func (x *HandleRequest) String() string
- type HandleResponse
- func (*HandleResponse) Descriptor() ([]byte, []int)deprecated
- func (x *HandleResponse) GetBody() []byte
- func (x *HandleResponse) GetHeaders() map[string]string
- func (x *HandleResponse) GetStatus() int32
- func (*HandleResponse) ProtoMessage()
- func (x *HandleResponse) ProtoReflect() protoreflect.Message
- func (x *HandleResponse) Reset()
- func (x *HandleResponse) String() string
- type HostConfig
- func (*HostConfig) Descriptor() ([]byte, []int)deprecated
- func (x *HostConfig) GetCurrencySymbol() string
- func (x *HostConfig) GetCurrencyUnit() string
- func (x *HostConfig) GetDebug() bool
- func (x *HostConfig) GetSiteHost() string
- func (x *HostConfig) GetSiteName() string
- func (*HostConfig) ProtoMessage()
- func (x *HostConfig) ProtoReflect() protoreflect.Message
- func (x *HostConfig) Reset()
- func (x *HostConfig) String() string
- type HttpRequestRequest
- func (*HttpRequestRequest) Descriptor() ([]byte, []int)deprecated
- func (x *HttpRequestRequest) GetBody() []byte
- func (x *HttpRequestRequest) GetHeaders() map[string]string
- func (x *HttpRequestRequest) GetMethod() string
- func (x *HttpRequestRequest) GetUrl() string
- func (*HttpRequestRequest) ProtoMessage()
- func (x *HttpRequestRequest) ProtoReflect() protoreflect.Message
- func (x *HttpRequestRequest) Reset()
- func (x *HttpRequestRequest) String() string
- type HttpRequestResponse
- func (*HttpRequestResponse) Descriptor() ([]byte, []int)deprecated
- func (x *HttpRequestResponse) GetBody() []byte
- func (x *HttpRequestResponse) GetHeaders() map[string]string
- func (x *HttpRequestResponse) GetStatus() int32
- func (*HttpRequestResponse) ProtoMessage()
- func (x *HttpRequestResponse) ProtoReflect() protoreflect.Message
- func (x *HttpRequestResponse) Reset()
- func (x *HttpRequestResponse) String() string
- type InitRequest
- func (*InitRequest) Descriptor() ([]byte, []int)deprecated
- func (x *InitRequest) GetConfig() *structpb.Struct
- func (x *InitRequest) GetHostConfig() *HostConfig
- func (x *InitRequest) GetPluginName() string
- func (*InitRequest) ProtoMessage()
- func (x *InitRequest) ProtoReflect() protoreflect.Message
- func (x *InitRequest) Reset()
- func (x *InitRequest) String() string
- type LogRequest
- func (*LogRequest) Descriptor() ([]byte, []int)deprecated
- func (x *LogRequest) GetFields() map[string]string
- func (x *LogRequest) GetLevel() string
- func (x *LogRequest) GetMessage() string
- func (*LogRequest) ProtoMessage()
- func (x *LogRequest) ProtoReflect() protoreflect.Message
- func (x *LogRequest) Reset()
- func (x *LogRequest) String() string
- type MiddlewareResponse
- func (*MiddlewareResponse) Descriptor() ([]byte, []int)deprecated
- func (x *MiddlewareResponse) GetAction() string
- func (x *MiddlewareResponse) GetBody() []byte
- func (x *MiddlewareResponse) GetHeaders() map[string]string
- func (x *MiddlewareResponse) GetStatus() int32
- func (*MiddlewareResponse) ProtoMessage()
- func (x *MiddlewareResponse) ProtoReflect() protoreflect.Message
- func (x *MiddlewareResponse) Reset()
- func (x *MiddlewareResponse) String() string
- type RedisGetRequest
- type RedisGetResponse
- func (*RedisGetResponse) Descriptor() ([]byte, []int)deprecated
- func (x *RedisGetResponse) GetExists() bool
- func (x *RedisGetResponse) GetValue() string
- func (*RedisGetResponse) ProtoMessage()
- func (x *RedisGetResponse) ProtoReflect() protoreflect.Message
- func (x *RedisGetResponse) Reset()
- func (x *RedisGetResponse) String() string
- type RedisSetRequest
- func (*RedisSetRequest) Descriptor() ([]byte, []int)deprecated
- func (x *RedisSetRequest) GetKey() string
- func (x *RedisSetRequest) GetTtlSeconds() int64
- func (x *RedisSetRequest) GetValue() string
- func (*RedisSetRequest) ProtoMessage()
- func (x *RedisSetRequest) ProtoReflect() protoreflect.Message
- func (x *RedisSetRequest) Reset()
- func (x *RedisSetRequest) String() string
- type RegisterMiddlewareRequest
- func (*RegisterMiddlewareRequest) Descriptor() ([]byte, []int)deprecated
- func (x *RegisterMiddlewareRequest) GetHandler() string
- func (x *RegisterMiddlewareRequest) GetName() string
- func (*RegisterMiddlewareRequest) ProtoMessage()
- func (x *RegisterMiddlewareRequest) ProtoReflect() protoreflect.Message
- func (x *RegisterMiddlewareRequest) Reset()
- func (x *RegisterMiddlewareRequest) String() string
- type RegisterRouteRequest
- func (*RegisterRouteRequest) Descriptor() ([]byte, []int)deprecated
- func (x *RegisterRouteRequest) GetHandler() string
- func (x *RegisterRouteRequest) GetMethod() string
- func (x *RegisterRouteRequest) GetMiddleware() []string
- func (x *RegisterRouteRequest) GetPath() string
- func (*RegisterRouteRequest) ProtoMessage()
- func (x *RegisterRouteRequest) ProtoReflect() protoreflect.Message
- func (x *RegisterRouteRequest) Reset()
- func (x *RegisterRouteRequest) String() string
- type RequestContext
- func (*RequestContext) Descriptor() ([]byte, []int)deprecated
- func (x *RequestContext) GetClientIp() string
- func (x *RequestContext) GetIsAdmin() bool
- func (x *RequestContext) GetUserId() int64
- func (*RequestContext) ProtoMessage()
- func (x *RequestContext) ProtoReflect() protoreflect.Message
- func (x *RequestContext) Reset()
- func (x *RequestContext) String() string
- type ScheduleTaskRequest
- func (*ScheduleTaskRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ScheduleTaskRequest) GetCron() string
- func (x *ScheduleTaskRequest) GetHandler() string
- func (x *ScheduleTaskRequest) GetName() string
- func (*ScheduleTaskRequest) ProtoMessage()
- func (x *ScheduleTaskRequest) ProtoReflect() protoreflect.Message
- func (x *ScheduleTaskRequest) Reset()
- func (x *ScheduleTaskRequest) String() string
- type StringList
- type SubscribeEventRequest
- func (*SubscribeEventRequest) Descriptor() ([]byte, []int)deprecated
- func (x *SubscribeEventRequest) GetEvent() string
- func (x *SubscribeEventRequest) GetHandler() string
- func (*SubscribeEventRequest) ProtoMessage()
- func (x *SubscribeEventRequest) ProtoReflect() protoreflect.Message
- func (x *SubscribeEventRequest) Reset()
- func (x *SubscribeEventRequest) String() string
Constants ¶
This section is empty.
Variables ¶
var File_api_plugin_v1_plugin_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type AsyncResolveRequest ¶
type AsyncResolveRequest struct {
TaskId uint64 `protobuf:"varint,1,opt,name=task_id,json=taskId,proto3" json:"task_id,omitempty"`
// contains filtered or unexported fields
}
func (*AsyncResolveRequest) Descriptor
deprecated
func (*AsyncResolveRequest) Descriptor() ([]byte, []int)
Deprecated: Use AsyncResolveRequest.ProtoReflect.Descriptor instead.
func (*AsyncResolveRequest) GetTaskId ¶
func (x *AsyncResolveRequest) GetTaskId() uint64
func (*AsyncResolveRequest) ProtoMessage ¶
func (*AsyncResolveRequest) ProtoMessage()
func (*AsyncResolveRequest) ProtoReflect ¶
func (x *AsyncResolveRequest) ProtoReflect() protoreflect.Message
func (*AsyncResolveRequest) Reset ¶
func (x *AsyncResolveRequest) Reset()
func (*AsyncResolveRequest) String ¶
func (x *AsyncResolveRequest) String() string
type AsyncResolveResponse ¶
type AsyncResolveResponse struct {
TaskId uint64 `protobuf:"varint,1,opt,name=task_id,json=taskId,proto3" json:"task_id,omitempty"`
Done bool `protobuf:"varint,2,opt,name=done,proto3" json:"done,omitempty"`
Result []byte `protobuf:"bytes,3,opt,name=result,proto3" json:"result,omitempty"` // protobuf-encoded response (HttpRequestResponse, RedisGetResponse, etc.)
Error string `protobuf:"bytes,4,opt,name=error,proto3" json:"error,omitempty"`
// contains filtered or unexported fields
}
func (*AsyncResolveResponse) Descriptor
deprecated
func (*AsyncResolveResponse) Descriptor() ([]byte, []int)
Deprecated: Use AsyncResolveResponse.ProtoReflect.Descriptor instead.
func (*AsyncResolveResponse) GetDone ¶
func (x *AsyncResolveResponse) GetDone() bool
func (*AsyncResolveResponse) GetError ¶
func (x *AsyncResolveResponse) GetError() string
func (*AsyncResolveResponse) GetResult ¶
func (x *AsyncResolveResponse) GetResult() []byte
func (*AsyncResolveResponse) GetTaskId ¶
func (x *AsyncResolveResponse) GetTaskId() uint64
func (*AsyncResolveResponse) ProtoMessage ¶
func (*AsyncResolveResponse) ProtoMessage()
func (*AsyncResolveResponse) ProtoReflect ¶
func (x *AsyncResolveResponse) ProtoReflect() protoreflect.Message
func (*AsyncResolveResponse) Reset ¶
func (x *AsyncResolveResponse) Reset()
func (*AsyncResolveResponse) String ¶
func (x *AsyncResolveResponse) String() string
type AsyncSubmitRequest ¶
type AsyncSubmitRequest struct {
OpType string `protobuf:"bytes,1,opt,name=op_type,json=opType,proto3" json:"op_type,omitempty"` // "http_get", "http_post", "db_query", "redis_get", "redis_set"
Params []byte `protobuf:"bytes,2,opt,name=params,proto3" json:"params,omitempty"` // protobuf-encoded request (HttpRequestRequest, RedisGetRequest, etc.)
// contains filtered or unexported fields
}
func (*AsyncSubmitRequest) Descriptor
deprecated
func (*AsyncSubmitRequest) Descriptor() ([]byte, []int)
Deprecated: Use AsyncSubmitRequest.ProtoReflect.Descriptor instead.
func (*AsyncSubmitRequest) GetOpType ¶
func (x *AsyncSubmitRequest) GetOpType() string
func (*AsyncSubmitRequest) GetParams ¶
func (x *AsyncSubmitRequest) GetParams() []byte
func (*AsyncSubmitRequest) ProtoMessage ¶
func (*AsyncSubmitRequest) ProtoMessage()
func (*AsyncSubmitRequest) ProtoReflect ¶
func (x *AsyncSubmitRequest) ProtoReflect() protoreflect.Message
func (*AsyncSubmitRequest) Reset ¶
func (x *AsyncSubmitRequest) Reset()
func (*AsyncSubmitRequest) String ¶
func (x *AsyncSubmitRequest) String() string
type AsyncSubmitResponse ¶
type AsyncSubmitResponse struct {
TaskId uint64 `protobuf:"varint,1,opt,name=task_id,json=taskId,proto3" json:"task_id,omitempty"`
// contains filtered or unexported fields
}
func (*AsyncSubmitResponse) Descriptor
deprecated
func (*AsyncSubmitResponse) Descriptor() ([]byte, []int)
Deprecated: Use AsyncSubmitResponse.ProtoReflect.Descriptor instead.
func (*AsyncSubmitResponse) GetTaskId ¶
func (x *AsyncSubmitResponse) GetTaskId() uint64
func (*AsyncSubmitResponse) ProtoMessage ¶
func (*AsyncSubmitResponse) ProtoMessage()
func (*AsyncSubmitResponse) ProtoReflect ¶
func (x *AsyncSubmitResponse) ProtoReflect() protoreflect.Message
func (*AsyncSubmitResponse) Reset ¶
func (x *AsyncSubmitResponse) Reset()
func (*AsyncSubmitResponse) String ¶
func (x *AsyncSubmitResponse) String() string
type AsyncWaitAnyRequest ¶
type AsyncWaitAnyRequest struct {
// contains filtered or unexported fields
}
func (*AsyncWaitAnyRequest) Descriptor
deprecated
func (*AsyncWaitAnyRequest) Descriptor() ([]byte, []int)
Deprecated: Use AsyncWaitAnyRequest.ProtoReflect.Descriptor instead.
func (*AsyncWaitAnyRequest) ProtoMessage ¶
func (*AsyncWaitAnyRequest) ProtoMessage()
func (*AsyncWaitAnyRequest) ProtoReflect ¶
func (x *AsyncWaitAnyRequest) ProtoReflect() protoreflect.Message
func (*AsyncWaitAnyRequest) Reset ¶
func (x *AsyncWaitAnyRequest) Reset()
func (*AsyncWaitAnyRequest) String ¶
func (x *AsyncWaitAnyRequest) String() string
type AsyncWaitAnyResponse ¶
type AsyncWaitAnyResponse struct {
TaskId uint64 `protobuf:"varint,1,opt,name=task_id,json=taskId,proto3" json:"task_id,omitempty"` // the task that completed
// contains filtered or unexported fields
}
func (*AsyncWaitAnyResponse) Descriptor
deprecated
func (*AsyncWaitAnyResponse) Descriptor() ([]byte, []int)
Deprecated: Use AsyncWaitAnyResponse.ProtoReflect.Descriptor instead.
func (*AsyncWaitAnyResponse) GetTaskId ¶
func (x *AsyncWaitAnyResponse) GetTaskId() uint64
func (*AsyncWaitAnyResponse) ProtoMessage ¶
func (*AsyncWaitAnyResponse) ProtoMessage()
func (*AsyncWaitAnyResponse) ProtoReflect ¶
func (x *AsyncWaitAnyResponse) ProtoReflect() protoreflect.Message
func (*AsyncWaitAnyResponse) Reset ¶
func (x *AsyncWaitAnyResponse) Reset()
func (*AsyncWaitAnyResponse) String ¶
func (x *AsyncWaitAnyResponse) String() string
type BoolResult ¶
type BoolResult struct {
Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"`
Error string `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"`
// contains filtered or unexported fields
}
func (*BoolResult) Descriptor
deprecated
func (*BoolResult) Descriptor() ([]byte, []int)
Deprecated: Use BoolResult.ProtoReflect.Descriptor instead.
func (*BoolResult) GetError ¶
func (x *BoolResult) GetError() string
func (*BoolResult) GetSuccess ¶
func (x *BoolResult) GetSuccess() bool
func (*BoolResult) ProtoMessage ¶
func (*BoolResult) ProtoMessage()
func (*BoolResult) ProtoReflect ¶
func (x *BoolResult) ProtoReflect() protoreflect.Message
func (*BoolResult) Reset ¶
func (x *BoolResult) Reset()
func (*BoolResult) String ¶
func (x *BoolResult) String() string
type ConfigGetRequest ¶
type ConfigGetRequest struct {
Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
// contains filtered or unexported fields
}
func (*ConfigGetRequest) Descriptor
deprecated
func (*ConfigGetRequest) Descriptor() ([]byte, []int)
Deprecated: Use ConfigGetRequest.ProtoReflect.Descriptor instead.
func (*ConfigGetRequest) GetKey ¶
func (x *ConfigGetRequest) GetKey() string
func (*ConfigGetRequest) ProtoMessage ¶
func (*ConfigGetRequest) ProtoMessage()
func (*ConfigGetRequest) ProtoReflect ¶
func (x *ConfigGetRequest) ProtoReflect() protoreflect.Message
func (*ConfigGetRequest) Reset ¶
func (x *ConfigGetRequest) Reset()
func (*ConfigGetRequest) String ¶
func (x *ConfigGetRequest) String() string
type ConfigGetResponse ¶
type ConfigGetResponse struct {
Value string `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"`
Exists bool `protobuf:"varint,2,opt,name=exists,proto3" json:"exists,omitempty"`
// contains filtered or unexported fields
}
func (*ConfigGetResponse) Descriptor
deprecated
func (*ConfigGetResponse) Descriptor() ([]byte, []int)
Deprecated: Use ConfigGetResponse.ProtoReflect.Descriptor instead.
func (*ConfigGetResponse) GetExists ¶
func (x *ConfigGetResponse) GetExists() bool
func (*ConfigGetResponse) GetValue ¶
func (x *ConfigGetResponse) GetValue() string
func (*ConfigGetResponse) ProtoMessage ¶
func (*ConfigGetResponse) ProtoMessage()
func (*ConfigGetResponse) ProtoReflect ¶
func (x *ConfigGetResponse) ProtoReflect() protoreflect.Message
func (*ConfigGetResponse) Reset ¶
func (x *ConfigGetResponse) Reset()
func (*ConfigGetResponse) String ¶
func (x *ConfigGetResponse) String() string
type DbQueryRequest ¶
type DbQueryRequest struct {
Model string `protobuf:"bytes,1,opt,name=model,proto3" json:"model,omitempty"` // "user" | "order" | "subscribe" | ...
Operation string `protobuf:"bytes,2,opt,name=operation,proto3" json:"operation,omitempty"` // "find" | "list" | "create" | "update" | "delete"
Conditions *structpb.Struct `protobuf:"bytes,3,opt,name=conditions,proto3" json:"conditions,omitempty"` // 动态条件
Fields *fieldmaskpb.FieldMask `protobuf:"bytes,4,opt,name=fields,proto3" json:"fields,omitempty"` // 指定返回字段
Limit int32 `protobuf:"varint,5,opt,name=limit,proto3" json:"limit,omitempty"`
Offset int32 `protobuf:"varint,6,opt,name=offset,proto3" json:"offset,omitempty"`
// contains filtered or unexported fields
}
func (*DbQueryRequest) Descriptor
deprecated
func (*DbQueryRequest) Descriptor() ([]byte, []int)
Deprecated: Use DbQueryRequest.ProtoReflect.Descriptor instead.
func (*DbQueryRequest) GetConditions ¶
func (x *DbQueryRequest) GetConditions() *structpb.Struct
func (*DbQueryRequest) GetFields ¶
func (x *DbQueryRequest) GetFields() *fieldmaskpb.FieldMask
func (*DbQueryRequest) GetLimit ¶
func (x *DbQueryRequest) GetLimit() int32
func (*DbQueryRequest) GetModel ¶
func (x *DbQueryRequest) GetModel() string
func (*DbQueryRequest) GetOffset ¶
func (x *DbQueryRequest) GetOffset() int32
func (*DbQueryRequest) GetOperation ¶
func (x *DbQueryRequest) GetOperation() string
func (*DbQueryRequest) ProtoMessage ¶
func (*DbQueryRequest) ProtoMessage()
func (*DbQueryRequest) ProtoReflect ¶
func (x *DbQueryRequest) ProtoReflect() protoreflect.Message
func (*DbQueryRequest) Reset ¶
func (x *DbQueryRequest) Reset()
func (*DbQueryRequest) String ¶
func (x *DbQueryRequest) String() string
type DbQueryResponse ¶
type DbQueryResponse struct {
Rows []*structpb.Struct `protobuf:"bytes,1,rep,name=rows,proto3" json:"rows,omitempty"`
Total int64 `protobuf:"varint,2,opt,name=total,proto3" json:"total,omitempty"`
Error string `protobuf:"bytes,3,opt,name=error,proto3" json:"error,omitempty"`
// contains filtered or unexported fields
}
func (*DbQueryResponse) Descriptor
deprecated
func (*DbQueryResponse) Descriptor() ([]byte, []int)
Deprecated: Use DbQueryResponse.ProtoReflect.Descriptor instead.
func (*DbQueryResponse) GetError ¶
func (x *DbQueryResponse) GetError() string
func (*DbQueryResponse) GetRows ¶
func (x *DbQueryResponse) GetRows() []*structpb.Struct
func (*DbQueryResponse) GetTotal ¶
func (x *DbQueryResponse) GetTotal() int64
func (*DbQueryResponse) ProtoMessage ¶
func (*DbQueryResponse) ProtoMessage()
func (*DbQueryResponse) ProtoReflect ¶
func (x *DbQueryResponse) ProtoReflect() protoreflect.Message
func (*DbQueryResponse) Reset ¶
func (x *DbQueryResponse) Reset()
func (*DbQueryResponse) String ¶
func (x *DbQueryResponse) String() string
type EmitEventRequest ¶
type EmitEventRequest struct {
Event string `protobuf:"bytes,1,opt,name=event,proto3" json:"event,omitempty"`
Payload *structpb.Struct `protobuf:"bytes,2,opt,name=payload,proto3" json:"payload,omitempty"`
// contains filtered or unexported fields
}
func (*EmitEventRequest) Descriptor
deprecated
func (*EmitEventRequest) Descriptor() ([]byte, []int)
Deprecated: Use EmitEventRequest.ProtoReflect.Descriptor instead.
func (*EmitEventRequest) GetEvent ¶
func (x *EmitEventRequest) GetEvent() string
func (*EmitEventRequest) GetPayload ¶
func (x *EmitEventRequest) GetPayload() *structpb.Struct
func (*EmitEventRequest) ProtoMessage ¶
func (*EmitEventRequest) ProtoMessage()
func (*EmitEventRequest) ProtoReflect ¶
func (x *EmitEventRequest) ProtoReflect() protoreflect.Message
func (*EmitEventRequest) Reset ¶
func (x *EmitEventRequest) Reset()
func (*EmitEventRequest) String ¶
func (x *EmitEventRequest) String() string
type Empty ¶
type Empty struct {
// contains filtered or unexported fields
}
func (*Empty) Descriptor
deprecated
func (*Empty) ProtoMessage ¶
func (*Empty) ProtoMessage()
func (*Empty) ProtoReflect ¶
func (x *Empty) ProtoReflect() protoreflect.Message
type EnqueueTaskRequest ¶
type EnqueueTaskRequest struct {
TaskName string `protobuf:"bytes,1,opt,name=task_name,json=taskName,proto3" json:"task_name,omitempty"` // asynq task type name
Payload *structpb.Struct `protobuf:"bytes,2,opt,name=payload,proto3" json:"payload,omitempty"` // task payload
// contains filtered or unexported fields
}
func (*EnqueueTaskRequest) Descriptor
deprecated
func (*EnqueueTaskRequest) Descriptor() ([]byte, []int)
Deprecated: Use EnqueueTaskRequest.ProtoReflect.Descriptor instead.
func (*EnqueueTaskRequest) GetPayload ¶
func (x *EnqueueTaskRequest) GetPayload() *structpb.Struct
func (*EnqueueTaskRequest) GetTaskName ¶
func (x *EnqueueTaskRequest) GetTaskName() string
func (*EnqueueTaskRequest) ProtoMessage ¶
func (*EnqueueTaskRequest) ProtoMessage()
func (*EnqueueTaskRequest) ProtoReflect ¶
func (x *EnqueueTaskRequest) ProtoReflect() protoreflect.Message
func (*EnqueueTaskRequest) Reset ¶
func (x *EnqueueTaskRequest) Reset()
func (*EnqueueTaskRequest) String ¶
func (x *EnqueueTaskRequest) String() string
type HandleRequest ¶
type HandleRequest struct {
Method string `protobuf:"bytes,1,opt,name=method,proto3" json:"method,omitempty"`
Path string `protobuf:"bytes,2,opt,name=path,proto3" json:"path,omitempty"`
Query map[string]*StringList `` /* 137-byte string literal not displayed */
Headers map[string]*StringList `` /* 141-byte string literal not displayed */
Body []byte `protobuf:"bytes,5,opt,name=body,proto3" json:"body,omitempty"`
Context *RequestContext `protobuf:"bytes,6,opt,name=context,proto3" json:"context,omitempty"`
// contains filtered or unexported fields
}
func (*HandleRequest) Descriptor
deprecated
func (*HandleRequest) Descriptor() ([]byte, []int)
Deprecated: Use HandleRequest.ProtoReflect.Descriptor instead.
func (*HandleRequest) GetBody ¶
func (x *HandleRequest) GetBody() []byte
func (*HandleRequest) GetContext ¶
func (x *HandleRequest) GetContext() *RequestContext
func (*HandleRequest) GetHeaders ¶
func (x *HandleRequest) GetHeaders() map[string]*StringList
func (*HandleRequest) GetMethod ¶
func (x *HandleRequest) GetMethod() string
func (*HandleRequest) GetPath ¶
func (x *HandleRequest) GetPath() string
func (*HandleRequest) GetQuery ¶
func (x *HandleRequest) GetQuery() map[string]*StringList
func (*HandleRequest) ProtoMessage ¶
func (*HandleRequest) ProtoMessage()
func (*HandleRequest) ProtoReflect ¶
func (x *HandleRequest) ProtoReflect() protoreflect.Message
func (*HandleRequest) Reset ¶
func (x *HandleRequest) Reset()
func (*HandleRequest) String ¶
func (x *HandleRequest) String() string
type HandleResponse ¶
type HandleResponse struct {
Status int32 `protobuf:"varint,1,opt,name=status,proto3" json:"status,omitempty"`
Body []byte `protobuf:"bytes,2,opt,name=body,proto3" json:"body,omitempty"`
Headers map[string]string `` /* 141-byte string literal not displayed */
// contains filtered or unexported fields
}
func (*HandleResponse) Descriptor
deprecated
func (*HandleResponse) Descriptor() ([]byte, []int)
Deprecated: Use HandleResponse.ProtoReflect.Descriptor instead.
func (*HandleResponse) GetBody ¶
func (x *HandleResponse) GetBody() []byte
func (*HandleResponse) GetHeaders ¶
func (x *HandleResponse) GetHeaders() map[string]string
func (*HandleResponse) GetStatus ¶
func (x *HandleResponse) GetStatus() int32
func (*HandleResponse) ProtoMessage ¶
func (*HandleResponse) ProtoMessage()
func (*HandleResponse) ProtoReflect ¶
func (x *HandleResponse) ProtoReflect() protoreflect.Message
func (*HandleResponse) Reset ¶
func (x *HandleResponse) Reset()
func (*HandleResponse) String ¶
func (x *HandleResponse) String() string
type HostConfig ¶
type HostConfig struct {
SiteName string `protobuf:"bytes,1,opt,name=site_name,json=siteName,proto3" json:"site_name,omitempty"`
SiteHost string `protobuf:"bytes,2,opt,name=site_host,json=siteHost,proto3" json:"site_host,omitempty"`
CurrencyUnit string `protobuf:"bytes,3,opt,name=currency_unit,json=currencyUnit,proto3" json:"currency_unit,omitempty"`
CurrencySymbol string `protobuf:"bytes,4,opt,name=currency_symbol,json=currencySymbol,proto3" json:"currency_symbol,omitempty"`
Debug bool `protobuf:"varint,5,opt,name=debug,proto3" json:"debug,omitempty"`
// contains filtered or unexported fields
}
func (*HostConfig) Descriptor
deprecated
func (*HostConfig) Descriptor() ([]byte, []int)
Deprecated: Use HostConfig.ProtoReflect.Descriptor instead.
func (*HostConfig) GetCurrencySymbol ¶
func (x *HostConfig) GetCurrencySymbol() string
func (*HostConfig) GetCurrencyUnit ¶
func (x *HostConfig) GetCurrencyUnit() string
func (*HostConfig) GetDebug ¶
func (x *HostConfig) GetDebug() bool
func (*HostConfig) GetSiteHost ¶
func (x *HostConfig) GetSiteHost() string
func (*HostConfig) GetSiteName ¶
func (x *HostConfig) GetSiteName() string
func (*HostConfig) ProtoMessage ¶
func (*HostConfig) ProtoMessage()
func (*HostConfig) ProtoReflect ¶
func (x *HostConfig) ProtoReflect() protoreflect.Message
func (*HostConfig) Reset ¶
func (x *HostConfig) Reset()
func (*HostConfig) String ¶
func (x *HostConfig) String() string
type HttpRequestRequest ¶
type HttpRequestRequest struct {
Method string `protobuf:"bytes,1,opt,name=method,proto3" json:"method,omitempty"`
Url string `protobuf:"bytes,2,opt,name=url,proto3" json:"url,omitempty"`
Headers map[string]string `` /* 141-byte string literal not displayed */
Body []byte `protobuf:"bytes,4,opt,name=body,proto3" json:"body,omitempty"`
// contains filtered or unexported fields
}
func (*HttpRequestRequest) Descriptor
deprecated
func (*HttpRequestRequest) Descriptor() ([]byte, []int)
Deprecated: Use HttpRequestRequest.ProtoReflect.Descriptor instead.
func (*HttpRequestRequest) GetBody ¶
func (x *HttpRequestRequest) GetBody() []byte
func (*HttpRequestRequest) GetHeaders ¶
func (x *HttpRequestRequest) GetHeaders() map[string]string
func (*HttpRequestRequest) GetMethod ¶
func (x *HttpRequestRequest) GetMethod() string
func (*HttpRequestRequest) GetUrl ¶
func (x *HttpRequestRequest) GetUrl() string
func (*HttpRequestRequest) ProtoMessage ¶
func (*HttpRequestRequest) ProtoMessage()
func (*HttpRequestRequest) ProtoReflect ¶
func (x *HttpRequestRequest) ProtoReflect() protoreflect.Message
func (*HttpRequestRequest) Reset ¶
func (x *HttpRequestRequest) Reset()
func (*HttpRequestRequest) String ¶
func (x *HttpRequestRequest) String() string
type HttpRequestResponse ¶
type HttpRequestResponse struct {
Status int32 `protobuf:"varint,1,opt,name=status,proto3" json:"status,omitempty"`
Body []byte `protobuf:"bytes,2,opt,name=body,proto3" json:"body,omitempty"`
Headers map[string]string `` /* 141-byte string literal not displayed */
// contains filtered or unexported fields
}
func (*HttpRequestResponse) Descriptor
deprecated
func (*HttpRequestResponse) Descriptor() ([]byte, []int)
Deprecated: Use HttpRequestResponse.ProtoReflect.Descriptor instead.
func (*HttpRequestResponse) GetBody ¶
func (x *HttpRequestResponse) GetBody() []byte
func (*HttpRequestResponse) GetHeaders ¶
func (x *HttpRequestResponse) GetHeaders() map[string]string
func (*HttpRequestResponse) GetStatus ¶
func (x *HttpRequestResponse) GetStatus() int32
func (*HttpRequestResponse) ProtoMessage ¶
func (*HttpRequestResponse) ProtoMessage()
func (*HttpRequestResponse) ProtoReflect ¶
func (x *HttpRequestResponse) ProtoReflect() protoreflect.Message
func (*HttpRequestResponse) Reset ¶
func (x *HttpRequestResponse) Reset()
func (*HttpRequestResponse) String ¶
func (x *HttpRequestResponse) String() string
type InitRequest ¶
type InitRequest struct {
PluginName string `protobuf:"bytes,1,opt,name=plugin_name,json=pluginName,proto3" json:"plugin_name,omitempty"`
Config *structpb.Struct `protobuf:"bytes,2,opt,name=config,proto3" json:"config,omitempty"` // 插件专属配置
HostConfig *HostConfig `protobuf:"bytes,3,opt,name=host_config,json=hostConfig,proto3" json:"host_config,omitempty"`
// contains filtered or unexported fields
}
func (*InitRequest) Descriptor
deprecated
func (*InitRequest) Descriptor() ([]byte, []int)
Deprecated: Use InitRequest.ProtoReflect.Descriptor instead.
func (*InitRequest) GetConfig ¶
func (x *InitRequest) GetConfig() *structpb.Struct
func (*InitRequest) GetHostConfig ¶
func (x *InitRequest) GetHostConfig() *HostConfig
func (*InitRequest) GetPluginName ¶
func (x *InitRequest) GetPluginName() string
func (*InitRequest) ProtoMessage ¶
func (*InitRequest) ProtoMessage()
func (*InitRequest) ProtoReflect ¶
func (x *InitRequest) ProtoReflect() protoreflect.Message
func (*InitRequest) Reset ¶
func (x *InitRequest) Reset()
func (*InitRequest) String ¶
func (x *InitRequest) String() string
type LogRequest ¶
type LogRequest struct {
Level string `protobuf:"bytes,1,opt,name=level,proto3" json:"level,omitempty"` // "info" | "warn" | "error"
Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
Fields map[string]string `` /* 139-byte string literal not displayed */
// contains filtered or unexported fields
}
func (*LogRequest) Descriptor
deprecated
func (*LogRequest) Descriptor() ([]byte, []int)
Deprecated: Use LogRequest.ProtoReflect.Descriptor instead.
func (*LogRequest) GetFields ¶
func (x *LogRequest) GetFields() map[string]string
func (*LogRequest) GetLevel ¶
func (x *LogRequest) GetLevel() string
func (*LogRequest) GetMessage ¶
func (x *LogRequest) GetMessage() string
func (*LogRequest) ProtoMessage ¶
func (*LogRequest) ProtoMessage()
func (*LogRequest) ProtoReflect ¶
func (x *LogRequest) ProtoReflect() protoreflect.Message
func (*LogRequest) Reset ¶
func (x *LogRequest) Reset()
func (*LogRequest) String ¶
func (x *LogRequest) String() string
type MiddlewareResponse ¶
type MiddlewareResponse struct {
Action string `protobuf:"bytes,1,opt,name=action,proto3" json:"action,omitempty"` // "next" | "abort" | "modify"
Status int32 `protobuf:"varint,2,opt,name=status,proto3" json:"status,omitempty"` // for abort
Body []byte `protobuf:"bytes,3,opt,name=body,proto3" json:"body,omitempty"` // for abort
Headers map[string]string `` // headers to add (for next/modify) or return (for abort)
/* 141-byte string literal not displayed */
// contains filtered or unexported fields
}
func (*MiddlewareResponse) Descriptor
deprecated
func (*MiddlewareResponse) Descriptor() ([]byte, []int)
Deprecated: Use MiddlewareResponse.ProtoReflect.Descriptor instead.
func (*MiddlewareResponse) GetAction ¶
func (x *MiddlewareResponse) GetAction() string
func (*MiddlewareResponse) GetBody ¶
func (x *MiddlewareResponse) GetBody() []byte
func (*MiddlewareResponse) GetHeaders ¶
func (x *MiddlewareResponse) GetHeaders() map[string]string
func (*MiddlewareResponse) GetStatus ¶
func (x *MiddlewareResponse) GetStatus() int32
func (*MiddlewareResponse) ProtoMessage ¶
func (*MiddlewareResponse) ProtoMessage()
func (*MiddlewareResponse) ProtoReflect ¶
func (x *MiddlewareResponse) ProtoReflect() protoreflect.Message
func (*MiddlewareResponse) Reset ¶
func (x *MiddlewareResponse) Reset()
func (*MiddlewareResponse) String ¶
func (x *MiddlewareResponse) String() string
type RedisGetRequest ¶
type RedisGetRequest struct {
Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
// contains filtered or unexported fields
}
func (*RedisGetRequest) Descriptor
deprecated
func (*RedisGetRequest) Descriptor() ([]byte, []int)
Deprecated: Use RedisGetRequest.ProtoReflect.Descriptor instead.
func (*RedisGetRequest) GetKey ¶
func (x *RedisGetRequest) GetKey() string
func (*RedisGetRequest) ProtoMessage ¶
func (*RedisGetRequest) ProtoMessage()
func (*RedisGetRequest) ProtoReflect ¶
func (x *RedisGetRequest) ProtoReflect() protoreflect.Message
func (*RedisGetRequest) Reset ¶
func (x *RedisGetRequest) Reset()
func (*RedisGetRequest) String ¶
func (x *RedisGetRequest) String() string
type RedisGetResponse ¶
type RedisGetResponse struct {
Value string `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"`
Exists bool `protobuf:"varint,2,opt,name=exists,proto3" json:"exists,omitempty"`
// contains filtered or unexported fields
}
func (*RedisGetResponse) Descriptor
deprecated
func (*RedisGetResponse) Descriptor() ([]byte, []int)
Deprecated: Use RedisGetResponse.ProtoReflect.Descriptor instead.
func (*RedisGetResponse) GetExists ¶
func (x *RedisGetResponse) GetExists() bool
func (*RedisGetResponse) GetValue ¶
func (x *RedisGetResponse) GetValue() string
func (*RedisGetResponse) ProtoMessage ¶
func (*RedisGetResponse) ProtoMessage()
func (*RedisGetResponse) ProtoReflect ¶
func (x *RedisGetResponse) ProtoReflect() protoreflect.Message
func (*RedisGetResponse) Reset ¶
func (x *RedisGetResponse) Reset()
func (*RedisGetResponse) String ¶
func (x *RedisGetResponse) String() string
type RedisSetRequest ¶
type RedisSetRequest struct {
Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
TtlSeconds int64 `protobuf:"varint,3,opt,name=ttl_seconds,json=ttlSeconds,proto3" json:"ttl_seconds,omitempty"`
// contains filtered or unexported fields
}
func (*RedisSetRequest) Descriptor
deprecated
func (*RedisSetRequest) Descriptor() ([]byte, []int)
Deprecated: Use RedisSetRequest.ProtoReflect.Descriptor instead.
func (*RedisSetRequest) GetKey ¶
func (x *RedisSetRequest) GetKey() string
func (*RedisSetRequest) GetTtlSeconds ¶
func (x *RedisSetRequest) GetTtlSeconds() int64
func (*RedisSetRequest) GetValue ¶
func (x *RedisSetRequest) GetValue() string
func (*RedisSetRequest) ProtoMessage ¶
func (*RedisSetRequest) ProtoMessage()
func (*RedisSetRequest) ProtoReflect ¶
func (x *RedisSetRequest) ProtoReflect() protoreflect.Message
func (*RedisSetRequest) Reset ¶
func (x *RedisSetRequest) Reset()
func (*RedisSetRequest) String ¶
func (x *RedisSetRequest) String() string
type RegisterMiddlewareRequest ¶
type RegisterMiddlewareRequest struct {
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // 中间件名,供路由引用
Handler string `protobuf:"bytes,2,opt,name=handler,proto3" json:"handler,omitempty"` // WASM 导出函数名
// contains filtered or unexported fields
}
func (*RegisterMiddlewareRequest) Descriptor
deprecated
func (*RegisterMiddlewareRequest) Descriptor() ([]byte, []int)
Deprecated: Use RegisterMiddlewareRequest.ProtoReflect.Descriptor instead.
func (*RegisterMiddlewareRequest) GetHandler ¶
func (x *RegisterMiddlewareRequest) GetHandler() string
func (*RegisterMiddlewareRequest) GetName ¶
func (x *RegisterMiddlewareRequest) GetName() string
func (*RegisterMiddlewareRequest) ProtoMessage ¶
func (*RegisterMiddlewareRequest) ProtoMessage()
func (*RegisterMiddlewareRequest) ProtoReflect ¶
func (x *RegisterMiddlewareRequest) ProtoReflect() protoreflect.Message
func (*RegisterMiddlewareRequest) Reset ¶
func (x *RegisterMiddlewareRequest) Reset()
func (*RegisterMiddlewareRequest) String ¶
func (x *RegisterMiddlewareRequest) String() string
type RegisterRouteRequest ¶
type RegisterRouteRequest struct {
Method string `protobuf:"bytes,1,opt,name=method,proto3" json:"method,omitempty"` // "GET" | "POST" | "PUT" | "DELETE"
Path string `protobuf:"bytes,2,opt,name=path,proto3" json:"path,omitempty"` // "/stats" (自动加前缀 /v1/plugin/{name})
Handler string `protobuf:"bytes,3,opt,name=handler,proto3" json:"handler,omitempty"` // WASM 导出函数名
Middleware []string `protobuf:"bytes,4,rep,name=middleware,proto3" json:"middleware,omitempty"` // "auth" | "device" | 自定义中间件名
// contains filtered or unexported fields
}
func (*RegisterRouteRequest) Descriptor
deprecated
func (*RegisterRouteRequest) Descriptor() ([]byte, []int)
Deprecated: Use RegisterRouteRequest.ProtoReflect.Descriptor instead.
func (*RegisterRouteRequest) GetHandler ¶
func (x *RegisterRouteRequest) GetHandler() string
func (*RegisterRouteRequest) GetMethod ¶
func (x *RegisterRouteRequest) GetMethod() string
func (*RegisterRouteRequest) GetMiddleware ¶
func (x *RegisterRouteRequest) GetMiddleware() []string
func (*RegisterRouteRequest) GetPath ¶
func (x *RegisterRouteRequest) GetPath() string
func (*RegisterRouteRequest) ProtoMessage ¶
func (*RegisterRouteRequest) ProtoMessage()
func (*RegisterRouteRequest) ProtoReflect ¶
func (x *RegisterRouteRequest) ProtoReflect() protoreflect.Message
func (*RegisterRouteRequest) Reset ¶
func (x *RegisterRouteRequest) Reset()
func (*RegisterRouteRequest) String ¶
func (x *RegisterRouteRequest) String() string
type RequestContext ¶
type RequestContext struct {
UserId int64 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
IsAdmin bool `protobuf:"varint,2,opt,name=is_admin,json=isAdmin,proto3" json:"is_admin,omitempty"`
ClientIp string `protobuf:"bytes,3,opt,name=client_ip,json=clientIp,proto3" json:"client_ip,omitempty"`
// contains filtered or unexported fields
}
func (*RequestContext) Descriptor
deprecated
func (*RequestContext) Descriptor() ([]byte, []int)
Deprecated: Use RequestContext.ProtoReflect.Descriptor instead.
func (*RequestContext) GetClientIp ¶
func (x *RequestContext) GetClientIp() string
func (*RequestContext) GetIsAdmin ¶
func (x *RequestContext) GetIsAdmin() bool
func (*RequestContext) GetUserId ¶
func (x *RequestContext) GetUserId() int64
func (*RequestContext) ProtoMessage ¶
func (*RequestContext) ProtoMessage()
func (*RequestContext) ProtoReflect ¶
func (x *RequestContext) ProtoReflect() protoreflect.Message
func (*RequestContext) Reset ¶
func (x *RequestContext) Reset()
func (*RequestContext) String ¶
func (x *RequestContext) String() string
type ScheduleTaskRequest ¶
type ScheduleTaskRequest struct {
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
Cron string `protobuf:"bytes,2,opt,name=cron,proto3" json:"cron,omitempty"` // "0 */6 * * *"
Handler string `protobuf:"bytes,3,opt,name=handler,proto3" json:"handler,omitempty"` // WASM 导出函数名
// contains filtered or unexported fields
}
func (*ScheduleTaskRequest) Descriptor
deprecated
func (*ScheduleTaskRequest) Descriptor() ([]byte, []int)
Deprecated: Use ScheduleTaskRequest.ProtoReflect.Descriptor instead.
func (*ScheduleTaskRequest) GetCron ¶
func (x *ScheduleTaskRequest) GetCron() string
func (*ScheduleTaskRequest) GetHandler ¶
func (x *ScheduleTaskRequest) GetHandler() string
func (*ScheduleTaskRequest) GetName ¶
func (x *ScheduleTaskRequest) GetName() string
func (*ScheduleTaskRequest) ProtoMessage ¶
func (*ScheduleTaskRequest) ProtoMessage()
func (*ScheduleTaskRequest) ProtoReflect ¶
func (x *ScheduleTaskRequest) ProtoReflect() protoreflect.Message
func (*ScheduleTaskRequest) Reset ¶
func (x *ScheduleTaskRequest) Reset()
func (*ScheduleTaskRequest) String ¶
func (x *ScheduleTaskRequest) String() string
type StringList ¶
type StringList struct {
Values []string `protobuf:"bytes,1,rep,name=values,proto3" json:"values,omitempty"`
// contains filtered or unexported fields
}
func (*StringList) Descriptor
deprecated
func (*StringList) Descriptor() ([]byte, []int)
Deprecated: Use StringList.ProtoReflect.Descriptor instead.
func (*StringList) GetValues ¶
func (x *StringList) GetValues() []string
func (*StringList) ProtoMessage ¶
func (*StringList) ProtoMessage()
func (*StringList) ProtoReflect ¶
func (x *StringList) ProtoReflect() protoreflect.Message
func (*StringList) Reset ¶
func (x *StringList) Reset()
func (*StringList) String ¶
func (x *StringList) String() string
type SubscribeEventRequest ¶
type SubscribeEventRequest struct {
Event string `protobuf:"bytes,1,opt,name=event,proto3" json:"event,omitempty"` // event name, "*" means all events
Handler string `protobuf:"bytes,2,opt,name=handler,proto3" json:"handler,omitempty"` // WASM export name, default: on_<event>
// contains filtered or unexported fields
}
func (*SubscribeEventRequest) Descriptor
deprecated
func (*SubscribeEventRequest) Descriptor() ([]byte, []int)
Deprecated: Use SubscribeEventRequest.ProtoReflect.Descriptor instead.
func (*SubscribeEventRequest) GetEvent ¶
func (x *SubscribeEventRequest) GetEvent() string
func (*SubscribeEventRequest) GetHandler ¶
func (x *SubscribeEventRequest) GetHandler() string
func (*SubscribeEventRequest) ProtoMessage ¶
func (*SubscribeEventRequest) ProtoMessage()
func (*SubscribeEventRequest) ProtoReflect ¶
func (x *SubscribeEventRequest) ProtoReflect() protoreflect.Message
func (*SubscribeEventRequest) Reset ¶
func (x *SubscribeEventRequest) Reset()
func (*SubscribeEventRequest) String ¶
func (x *SubscribeEventRequest) String() string