Documentation ¶
Index ¶
- Variables
- func CPServiceClientType() reflect.Type
- func CPServiceHandlerType() reflect.Type
- func CPServiceServerType() reflect.Type
- func RegisterCPServiceHandler(r http.Router, srv CPServiceHandler, opts ...http.HandleOption)
- func RegisterCPServiceImp(regester transport.Register, srv CPServiceServer, ...)
- func RegisterCPServiceServer(s grpc1.ServiceRegistrar, srv CPServiceServer, opts ...grpc1.HandleOption)
- func ServiceNames(svr ...string) []string
- func Types() []reflect.Type
- type CPServiceClient
- type CPServiceHandler
- type CPServiceServer
- type Component
- func (*Component) Descriptor() ([]byte, []int)deprecated
- func (x *Component) GetData() map[string]*structpb.Value
- func (x *Component) GetName() string
- func (x *Component) GetOperations() map[string]*structpb.Value
- func (x *Component) GetOptions() *ComponentOptions
- func (x *Component) GetProps() *structpb.Value
- func (x *Component) GetState() map[string]*structpb.Value
- func (x *Component) GetType() string
- func (x *Component) GetVersion() string
- func (m *Component) MarshalJSON() ([]byte, error)
- func (*Component) ProtoMessage()
- func (x *Component) ProtoReflect() protoreflect.Message
- func (x *Component) Reset()
- func (x *Component) String() string
- func (m *Component) UnmarshalJSON(b []byte) error
- func (m *Component) UnmarshalURLValues(prefix string, values url.Values) error
- func (this *Component) Validate() error
- type ComponentEvent
- func (*ComponentEvent) Descriptor() ([]byte, []int)deprecated
- func (x *ComponentEvent) GetComponent() string
- func (x *ComponentEvent) GetOperation() string
- func (x *ComponentEvent) GetOperationData() map[string]*structpb.Value
- func (m *ComponentEvent) MarshalJSON() ([]byte, error)
- func (*ComponentEvent) ProtoMessage()
- func (x *ComponentEvent) ProtoReflect() protoreflect.Message
- func (x *ComponentEvent) Reset()
- func (x *ComponentEvent) String() string
- func (m *ComponentEvent) UnmarshalJSON(b []byte) error
- func (m *ComponentEvent) UnmarshalURLValues(prefix string, values url.Values) error
- func (this *ComponentEvent) Validate() error
- type ComponentOptions
- func (*ComponentOptions) Descriptor() ([]byte, []int)deprecated
- func (x *ComponentOptions) GetAsyncAtInit() bool
- func (x *ComponentOptions) GetFlatMeta() bool
- func (x *ComponentOptions) GetRemoveMetaAfterFlat() bool
- func (x *ComponentOptions) GetVisible() bool
- func (m *ComponentOptions) MarshalJSON() ([]byte, error)
- func (*ComponentOptions) ProtoMessage()
- func (x *ComponentOptions) ProtoReflect() protoreflect.Message
- func (x *ComponentOptions) Reset()
- func (x *ComponentOptions) String() string
- func (m *ComponentOptions) UnmarshalJSON(b []byte) error
- func (m *ComponentOptions) UnmarshalURLValues(prefix string, values url.Values) error
- func (this *ComponentOptions) Validate() error
- type ComponentProtocol
- func (*ComponentProtocol) Descriptor() ([]byte, []int)deprecated
- func (x *ComponentProtocol) GetComponents() map[string]*Component
- func (x *ComponentProtocol) GetGlobalState() map[string]*structpb.Value
- func (x *ComponentProtocol) GetHierarchy() *Hierarchy
- func (x *ComponentProtocol) GetOptions() *ProtocolOptions
- func (x *ComponentProtocol) GetRendering() map[string]*structpb.ListValue
- func (x *ComponentProtocol) GetScenario() string
- func (x *ComponentProtocol) GetVersion() string
- func (m *ComponentProtocol) MarshalJSON() ([]byte, error)
- func (*ComponentProtocol) ProtoMessage()
- func (x *ComponentProtocol) ProtoReflect() protoreflect.Message
- func (x *ComponentProtocol) Reset()
- func (x *ComponentProtocol) String() string
- func (m *ComponentProtocol) UnmarshalJSON(b []byte) error
- func (m *ComponentProtocol) UnmarshalURLValues(prefix string, values url.Values) error
- func (this *ComponentProtocol) Validate() error
- type DebugOptions
- func (*DebugOptions) Descriptor() ([]byte, []int)deprecated
- func (x *DebugOptions) GetComponentKey() string
- func (m *DebugOptions) MarshalJSON() ([]byte, error)
- func (*DebugOptions) ProtoMessage()
- func (x *DebugOptions) ProtoReflect() protoreflect.Message
- func (x *DebugOptions) Reset()
- func (x *DebugOptions) String() string
- func (m *DebugOptions) UnmarshalJSON(b []byte) error
- func (m *DebugOptions) UnmarshalURLValues(prefix string, values url.Values) error
- func (this *DebugOptions) Validate() error
- type Hierarchy
- func (*Hierarchy) Descriptor() ([]byte, []int)deprecated
- func (x *Hierarchy) GetParallel() map[string]*structpb.Value
- func (x *Hierarchy) GetRoot() string
- func (x *Hierarchy) GetStructure() map[string]*structpb.Value
- func (m *Hierarchy) MarshalJSON() ([]byte, error)
- func (*Hierarchy) ProtoMessage()
- func (x *Hierarchy) ProtoReflect() protoreflect.Message
- func (x *Hierarchy) Reset()
- func (x *Hierarchy) String() string
- func (m *Hierarchy) UnmarshalJSON(b []byte) error
- func (m *Hierarchy) UnmarshalURLValues(prefix string, values url.Values) error
- func (this *Hierarchy) Validate() error
- type IdentityInfo
- func (*IdentityInfo) Descriptor() ([]byte, []int)deprecated
- func (x *IdentityInfo) GetInternalClient() string
- func (x *IdentityInfo) GetOrgID() string
- func (x *IdentityInfo) GetUserID() string
- func (m *IdentityInfo) MarshalJSON() ([]byte, error)
- func (*IdentityInfo) ProtoMessage()
- func (x *IdentityInfo) ProtoReflect() protoreflect.Message
- func (x *IdentityInfo) Reset()
- func (x *IdentityInfo) String() string
- func (m *IdentityInfo) UnmarshalJSON(b []byte) error
- func (m *IdentityInfo) UnmarshalURLValues(prefix string, values url.Values) error
- func (this *IdentityInfo) Validate() error
- type ProtocolOptions
- func (*ProtocolOptions) Descriptor() ([]byte, []int)deprecated
- func (x *ProtocolOptions) GetSyncIntervalSecond() float64
- func (m *ProtocolOptions) MarshalJSON() ([]byte, error)
- func (*ProtocolOptions) ProtoMessage()
- func (x *ProtocolOptions) ProtoReflect() protoreflect.Message
- func (x *ProtocolOptions) Reset()
- func (x *ProtocolOptions) String() string
- func (m *ProtocolOptions) UnmarshalJSON(b []byte) error
- func (m *ProtocolOptions) UnmarshalURLValues(prefix string, values url.Values) error
- func (this *ProtocolOptions) Validate() error
- type RenderRequest
- func (*RenderRequest) Descriptor() ([]byte, []int)deprecated
- func (x *RenderRequest) GetDebugOptions() *DebugOptions
- func (x *RenderRequest) GetEvent() *ComponentEvent
- func (x *RenderRequest) GetInParams() map[string]*structpb.Value
- func (x *RenderRequest) GetProtocol() *ComponentProtocol
- func (x *RenderRequest) GetScenario() *Scenario
- func (m *RenderRequest) MarshalJSON() ([]byte, error)
- func (*RenderRequest) ProtoMessage()
- func (x *RenderRequest) ProtoReflect() protoreflect.Message
- func (x *RenderRequest) Reset()
- func (x *RenderRequest) String() string
- func (m *RenderRequest) UnmarshalJSON(b []byte) error
- func (m *RenderRequest) UnmarshalURLValues(prefix string, values url.Values) error
- func (this *RenderRequest) Validate() error
- type RenderResponse
- func (*RenderResponse) Descriptor() ([]byte, []int)deprecated
- func (x *RenderResponse) GetProtocol() *ComponentProtocol
- func (x *RenderResponse) GetScenario() *Scenario
- func (m *RenderResponse) MarshalJSON() ([]byte, error)
- func (*RenderResponse) ProtoMessage()
- func (x *RenderResponse) ProtoReflect() protoreflect.Message
- func (x *RenderResponse) Reset()
- func (x *RenderResponse) String() string
- func (m *RenderResponse) UnmarshalJSON(b []byte) error
- func (m *RenderResponse) UnmarshalURLValues(prefix string, values url.Values) error
- func (this *RenderResponse) Validate() error
- type Scenario
- func (*Scenario) Descriptor() ([]byte, []int)deprecated
- func (x *Scenario) GetScenarioKey() string
- func (x *Scenario) GetScenarioType() string
- func (m *Scenario) MarshalJSON() ([]byte, error)
- func (*Scenario) ProtoMessage()
- func (x *Scenario) ProtoReflect() protoreflect.Message
- func (x *Scenario) Reset()
- func (x *Scenario) String() string
- func (m *Scenario) UnmarshalJSON(b []byte) error
- func (m *Scenario) UnmarshalURLValues(prefix string, values url.Values) error
- func (this *Scenario) Validate() error
- type UnimplementedCPServiceServer
Constants ¶
This section is empty.
Variables ¶
var File_protocol_proto protoreflect.FileDescriptor
Functions ¶
func RegisterCPServiceHandler ¶
func RegisterCPServiceHandler(r http.Router, srv CPServiceHandler, opts ...http.HandleOption)
RegisterCPServiceHandler register CPServiceHandler to http.Router.
func RegisterCPServiceImp ¶
func RegisterCPServiceImp(regester transport.Register, srv CPServiceServer, opts ...transport.ServiceOption)
RegisterCPServiceImp protocol.proto
func RegisterCPServiceServer ¶
func RegisterCPServiceServer(s grpc1.ServiceRegistrar, srv CPServiceServer, opts ...grpc1.HandleOption)
Types ¶
type CPServiceClient ¶
type CPServiceClient interface {
Render(ctx context.Context, in *RenderRequest, opts ...grpc.CallOption) (*RenderResponse, error)
}
CPServiceClient is the client API for CPService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewCPServiceClient ¶
func NewCPServiceClient(cc grpc1.ClientConnInterface) CPServiceClient
type CPServiceHandler ¶
type CPServiceHandler interface { // POST /api/component-protocol/actions/render Render(context.Context, *RenderRequest) (*RenderResponse, error) }
CPServiceHandler is the server API for CPService service.
type CPServiceServer ¶
type CPServiceServer interface {
Render(context.Context, *RenderRequest) (*RenderResponse, error)
}
CPServiceServer is the server API for CPService service. All implementations should embed UnimplementedCPServiceServer for forward compatibility
type Component ¶
type Component struct { // type of the component. Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"` // name of the component. Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` // props is component's fixed properties, such as: table columns definition. Props *structpb.Value `protobuf:"bytes,3,opt,name=props,proto3" json:"props,omitempty"` // state is component's flexible properties, such as: table pageNo/pageSize. State map[string]*structpb.Value `` /* 151-byte string literal not displayed */ // data is component's business data. Data map[string]*structpb.Value `` /* 149-byte string literal not displayed */ // operations of the component. Operations map[string]*structpb.Value `` /* 161-byte string literal not displayed */ // options of the component. Options *ComponentOptions `protobuf:"bytes,7,opt,name=options,proto3" json:"options,omitempty"` // version of the component. Version string `protobuf:"bytes,8,opt,name=version,proto3" json:"version,omitempty"` // contains filtered or unexported fields }
Component defines a component.
func (*Component) Descriptor
deprecated
func (*Component) GetOptions ¶
func (x *Component) GetOptions() *ComponentOptions
func (*Component) GetVersion ¶
func (*Component) MarshalJSON ¶
Component implement json.Marshaler.
func (*Component) ProtoMessage ¶
func (*Component) ProtoMessage()
func (*Component) ProtoReflect ¶
func (x *Component) ProtoReflect() protoreflect.Message
func (*Component) UnmarshalJSON ¶
Component implement json.Marshaler.
func (*Component) UnmarshalURLValues ¶
Component implement urlenc.URLValuesUnmarshaler.
type ComponentEvent ¶
type ComponentEvent struct { // component name. Component string `protobuf:"bytes,1,opt,name=component,proto3" json:"component,omitempty"` // operation key. Operation string `protobuf:"bytes,2,opt,name=operation,proto3" json:"operation,omitempty"` // operationData contains operation details. OperationData map[string]*structpb.Value `` /* 167-byte string literal not displayed */ // contains filtered or unexported fields }
ComponentEvent .
func (*ComponentEvent) Descriptor
deprecated
func (*ComponentEvent) Descriptor() ([]byte, []int)
Deprecated: Use ComponentEvent.ProtoReflect.Descriptor instead.
func (*ComponentEvent) GetComponent ¶
func (x *ComponentEvent) GetComponent() string
func (*ComponentEvent) GetOperation ¶
func (x *ComponentEvent) GetOperation() string
func (*ComponentEvent) GetOperationData ¶
func (x *ComponentEvent) GetOperationData() map[string]*structpb.Value
func (*ComponentEvent) MarshalJSON ¶
func (m *ComponentEvent) MarshalJSON() ([]byte, error)
ComponentEvent implement json.Marshaler.
func (*ComponentEvent) ProtoMessage ¶
func (*ComponentEvent) ProtoMessage()
func (*ComponentEvent) ProtoReflect ¶
func (x *ComponentEvent) ProtoReflect() protoreflect.Message
func (*ComponentEvent) Reset ¶
func (x *ComponentEvent) Reset()
func (*ComponentEvent) String ¶
func (x *ComponentEvent) String() string
func (*ComponentEvent) UnmarshalJSON ¶
func (m *ComponentEvent) UnmarshalJSON(b []byte) error
ComponentEvent implement json.Marshaler.
func (*ComponentEvent) UnmarshalURLValues ¶
func (m *ComponentEvent) UnmarshalURLValues(prefix string, values url.Values) error
ComponentEvent implement urlenc.URLValuesUnmarshaler.
func (*ComponentEvent) Validate ¶
func (this *ComponentEvent) Validate() error
type ComponentOptions ¶
type ComponentOptions struct { Visible bool `protobuf:"varint,1,opt,name=visible,proto3" json:"visible,omitempty"` AsyncAtInit bool `protobuf:"varint,2,opt,name=asyncAtInit,proto3" json:"asyncAtInit,omitempty"` FlatMeta bool `protobuf:"varint,3,opt,name=flatMeta,proto3" json:"flatMeta,omitempty"` RemoveMetaAfterFlat bool `protobuf:"varint,4,opt,name=removeMetaAfterFlat,proto3" json:"removeMetaAfterFlat,omitempty"` // contains filtered or unexported fields }
func (*ComponentOptions) Descriptor
deprecated
func (*ComponentOptions) Descriptor() ([]byte, []int)
Deprecated: Use ComponentOptions.ProtoReflect.Descriptor instead.
func (*ComponentOptions) GetAsyncAtInit ¶
func (x *ComponentOptions) GetAsyncAtInit() bool
func (*ComponentOptions) GetFlatMeta ¶
func (x *ComponentOptions) GetFlatMeta() bool
func (*ComponentOptions) GetRemoveMetaAfterFlat ¶
func (x *ComponentOptions) GetRemoveMetaAfterFlat() bool
func (*ComponentOptions) GetVisible ¶
func (x *ComponentOptions) GetVisible() bool
func (*ComponentOptions) MarshalJSON ¶
func (m *ComponentOptions) MarshalJSON() ([]byte, error)
ComponentOptions implement json.Marshaler.
func (*ComponentOptions) ProtoMessage ¶
func (*ComponentOptions) ProtoMessage()
func (*ComponentOptions) ProtoReflect ¶
func (x *ComponentOptions) ProtoReflect() protoreflect.Message
func (*ComponentOptions) Reset ¶
func (x *ComponentOptions) Reset()
func (*ComponentOptions) String ¶
func (x *ComponentOptions) String() string
func (*ComponentOptions) UnmarshalJSON ¶
func (m *ComponentOptions) UnmarshalJSON(b []byte) error
ComponentOptions implement json.Marshaler.
func (*ComponentOptions) UnmarshalURLValues ¶
func (m *ComponentOptions) UnmarshalURLValues(prefix string, values url.Values) error
ComponentOptions implement urlenc.URLValuesUnmarshaler.
func (*ComponentOptions) Validate ¶
func (this *ComponentOptions) Validate() error
type ComponentProtocol ¶
type ComponentProtocol struct { // version is protocol version. Version string `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"` // scenario used to distinguish concrete scenario. Scenario string `protobuf:"bytes,2,opt,name=scenario,proto3" json:"scenario,omitempty"` // globalState stores global states for all components. GlobalState map[string]*structpb.Value `` /* 174-byte string literal not displayed */ // hierarchy represents components' hierarchy. Hierarchy *Hierarchy `protobuf:"bytes,4,opt,name=hierarchy,proto3" json:"hierarchy,omitempty"` // components contains all rendered components. Components map[string]*Component `` /* 161-byte string literal not displayed */ // rendering represents components rendering definitions. Rendering map[string]*structpb.ListValue `` /* 159-byte string literal not displayed */ // options Options *ProtocolOptions `protobuf:"bytes,7,opt,name=options,proto3" json:"options,omitempty"` // contains filtered or unexported fields }
component-protocol definition.
func (*ComponentProtocol) Descriptor
deprecated
func (*ComponentProtocol) Descriptor() ([]byte, []int)
Deprecated: Use ComponentProtocol.ProtoReflect.Descriptor instead.
func (*ComponentProtocol) GetComponents ¶
func (x *ComponentProtocol) GetComponents() map[string]*Component
func (*ComponentProtocol) GetGlobalState ¶
func (x *ComponentProtocol) GetGlobalState() map[string]*structpb.Value
func (*ComponentProtocol) GetHierarchy ¶
func (x *ComponentProtocol) GetHierarchy() *Hierarchy
func (*ComponentProtocol) GetOptions ¶
func (x *ComponentProtocol) GetOptions() *ProtocolOptions
func (*ComponentProtocol) GetRendering ¶
func (x *ComponentProtocol) GetRendering() map[string]*structpb.ListValue
func (*ComponentProtocol) GetScenario ¶
func (x *ComponentProtocol) GetScenario() string
func (*ComponentProtocol) GetVersion ¶
func (x *ComponentProtocol) GetVersion() string
func (*ComponentProtocol) MarshalJSON ¶
func (m *ComponentProtocol) MarshalJSON() ([]byte, error)
ComponentProtocol implement json.Marshaler.
func (*ComponentProtocol) ProtoMessage ¶
func (*ComponentProtocol) ProtoMessage()
func (*ComponentProtocol) ProtoReflect ¶
func (x *ComponentProtocol) ProtoReflect() protoreflect.Message
func (*ComponentProtocol) Reset ¶
func (x *ComponentProtocol) Reset()
func (*ComponentProtocol) String ¶
func (x *ComponentProtocol) String() string
func (*ComponentProtocol) UnmarshalJSON ¶
func (m *ComponentProtocol) UnmarshalJSON(b []byte) error
ComponentProtocol implement json.Marshaler.
func (*ComponentProtocol) UnmarshalURLValues ¶
func (m *ComponentProtocol) UnmarshalURLValues(prefix string, values url.Values) error
ComponentProtocol implement urlenc.URLValuesUnmarshaler.
func (*ComponentProtocol) Validate ¶
func (this *ComponentProtocol) Validate() error
type DebugOptions ¶
type DebugOptions struct { // componentKey . ComponentKey string `protobuf:"bytes,1,opt,name=componentKey,proto3" json:"componentKey,omitempty"` // contains filtered or unexported fields }
DebugOptions is debug options.
func (*DebugOptions) Descriptor
deprecated
func (*DebugOptions) Descriptor() ([]byte, []int)
Deprecated: Use DebugOptions.ProtoReflect.Descriptor instead.
func (*DebugOptions) GetComponentKey ¶
func (x *DebugOptions) GetComponentKey() string
func (*DebugOptions) MarshalJSON ¶
func (m *DebugOptions) MarshalJSON() ([]byte, error)
DebugOptions implement json.Marshaler.
func (*DebugOptions) ProtoMessage ¶
func (*DebugOptions) ProtoMessage()
func (*DebugOptions) ProtoReflect ¶
func (x *DebugOptions) ProtoReflect() protoreflect.Message
func (*DebugOptions) Reset ¶
func (x *DebugOptions) Reset()
func (*DebugOptions) String ¶
func (x *DebugOptions) String() string
func (*DebugOptions) UnmarshalJSON ¶
func (m *DebugOptions) UnmarshalJSON(b []byte) error
DebugOptions implement json.Marshaler.
func (*DebugOptions) UnmarshalURLValues ¶
func (m *DebugOptions) UnmarshalURLValues(prefix string, values url.Values) error
DebugOptions implement urlenc.URLValuesUnmarshaler.
func (*DebugOptions) Validate ¶
func (this *DebugOptions) Validate() error
type Hierarchy ¶
type Hierarchy struct { // root component, required. Root string `protobuf:"bytes,1,opt,name=root,proto3" json:"root,omitempty"` // structure means concrete structure of components. // value may be list or map. Structure map[string]*structpb.Value `` /* 159-byte string literal not displayed */ // parallel defines parallel components. Parallel map[string]*structpb.Value `` /* 157-byte string literal not displayed */ // contains filtered or unexported fields }
Hierarchy represents components' hierarchy.
func (*Hierarchy) Descriptor
deprecated
func (*Hierarchy) MarshalJSON ¶
Hierarchy implement json.Marshaler.
func (*Hierarchy) ProtoMessage ¶
func (*Hierarchy) ProtoMessage()
func (*Hierarchy) ProtoReflect ¶
func (x *Hierarchy) ProtoReflect() protoreflect.Message
func (*Hierarchy) UnmarshalJSON ¶
Hierarchy implement json.Marshaler.
func (*Hierarchy) UnmarshalURLValues ¶
Hierarchy implement urlenc.URLValuesUnmarshaler.
type IdentityInfo ¶
type IdentityInfo struct { // UserID is user id. It must be provided in some cases. // Cannot be null if InternalClient is null. // +optional UserID string `protobuf:"bytes,1,opt,name=userID,proto3" json:"userID,omitempty"` // InternalClient records the internal client, such as: bundle. // Cannot be null if UserID is null. // +optional InternalClient string `protobuf:"bytes,2,opt,name=internalClient,proto3" json:"internalClient,omitempty"` // OrgID is org id. It must be provided in some cases. // +optional OrgID string `protobuf:"bytes,3,opt,name=orgID,proto3" json:"orgID,omitempty"` // contains filtered or unexported fields }
IdentityInfo
func (*IdentityInfo) Descriptor
deprecated
func (*IdentityInfo) Descriptor() ([]byte, []int)
Deprecated: Use IdentityInfo.ProtoReflect.Descriptor instead.
func (*IdentityInfo) GetInternalClient ¶
func (x *IdentityInfo) GetInternalClient() string
func (*IdentityInfo) GetOrgID ¶
func (x *IdentityInfo) GetOrgID() string
func (*IdentityInfo) GetUserID ¶
func (x *IdentityInfo) GetUserID() string
func (*IdentityInfo) MarshalJSON ¶
func (m *IdentityInfo) MarshalJSON() ([]byte, error)
IdentityInfo implement json.Marshaler.
func (*IdentityInfo) ProtoMessage ¶
func (*IdentityInfo) ProtoMessage()
func (*IdentityInfo) ProtoReflect ¶
func (x *IdentityInfo) ProtoReflect() protoreflect.Message
func (*IdentityInfo) Reset ¶
func (x *IdentityInfo) Reset()
func (*IdentityInfo) String ¶
func (x *IdentityInfo) String() string
func (*IdentityInfo) UnmarshalJSON ¶
func (m *IdentityInfo) UnmarshalJSON(b []byte) error
IdentityInfo implement json.Marshaler.
func (*IdentityInfo) UnmarshalURLValues ¶
func (m *IdentityInfo) UnmarshalURLValues(prefix string, values url.Values) error
IdentityInfo implement urlenc.URLValuesUnmarshaler.
func (*IdentityInfo) Validate ¶
func (this *IdentityInfo) Validate() error
type ProtocolOptions ¶
type ProtocolOptions struct { // sync interval second. SyncIntervalSecond float64 `protobuf:"fixed64,1,opt,name=syncIntervalSecond,proto3" json:"syncIntervalSecond,omitempty"` // contains filtered or unexported fields }
ProtocolOptions .
func (*ProtocolOptions) Descriptor
deprecated
func (*ProtocolOptions) Descriptor() ([]byte, []int)
Deprecated: Use ProtocolOptions.ProtoReflect.Descriptor instead.
func (*ProtocolOptions) GetSyncIntervalSecond ¶
func (x *ProtocolOptions) GetSyncIntervalSecond() float64
func (*ProtocolOptions) MarshalJSON ¶
func (m *ProtocolOptions) MarshalJSON() ([]byte, error)
ProtocolOptions implement json.Marshaler.
func (*ProtocolOptions) ProtoMessage ¶
func (*ProtocolOptions) ProtoMessage()
func (*ProtocolOptions) ProtoReflect ¶
func (x *ProtocolOptions) ProtoReflect() protoreflect.Message
func (*ProtocolOptions) Reset ¶
func (x *ProtocolOptions) Reset()
func (*ProtocolOptions) String ¶
func (x *ProtocolOptions) String() string
func (*ProtocolOptions) UnmarshalJSON ¶
func (m *ProtocolOptions) UnmarshalJSON(b []byte) error
ProtocolOptions implement json.Marshaler.
func (*ProtocolOptions) UnmarshalURLValues ¶
func (m *ProtocolOptions) UnmarshalURLValues(prefix string, values url.Values) error
ProtocolOptions implement urlenc.URLValuesUnmarshaler.
func (*ProtocolOptions) Validate ¶
func (this *ProtocolOptions) Validate() error
type RenderRequest ¶
type RenderRequest struct { // scenario of this render. Scenario *Scenario `protobuf:"bytes,1,opt,name=scenario,proto3" json:"scenario,omitempty"` // event of this render. // Optional. Event *ComponentEvent `protobuf:"bytes,2,opt,name=event,proto3" json:"event,omitempty"` // inParams contains passed in params from request caller. InParams map[string]*structpb.Value `` /* 157-byte string literal not displayed */ // protocol represent protocol detail. // First time render is empty. // Optional. Protocol *ComponentProtocol `protobuf:"bytes,4,opt,name=protocol,proto3" json:"protocol,omitempty"` // debugOptions contains options for debug. DebugOptions *DebugOptions `protobuf:"bytes,5,opt,name=debugOptions,proto3" json:"debugOptions,omitempty"` // contains filtered or unexported fields }
RenderRequest is protocol render request.
func (*RenderRequest) Descriptor
deprecated
func (*RenderRequest) Descriptor() ([]byte, []int)
Deprecated: Use RenderRequest.ProtoReflect.Descriptor instead.
func (*RenderRequest) GetDebugOptions ¶
func (x *RenderRequest) GetDebugOptions() *DebugOptions
func (*RenderRequest) GetEvent ¶
func (x *RenderRequest) GetEvent() *ComponentEvent
func (*RenderRequest) GetInParams ¶
func (x *RenderRequest) GetInParams() map[string]*structpb.Value
func (*RenderRequest) GetProtocol ¶
func (x *RenderRequest) GetProtocol() *ComponentProtocol
func (*RenderRequest) GetScenario ¶
func (x *RenderRequest) GetScenario() *Scenario
func (*RenderRequest) MarshalJSON ¶
func (m *RenderRequest) MarshalJSON() ([]byte, error)
RenderRequest implement json.Marshaler.
func (*RenderRequest) ProtoMessage ¶
func (*RenderRequest) ProtoMessage()
func (*RenderRequest) ProtoReflect ¶
func (x *RenderRequest) ProtoReflect() protoreflect.Message
func (*RenderRequest) Reset ¶
func (x *RenderRequest) Reset()
func (*RenderRequest) String ¶
func (x *RenderRequest) String() string
func (*RenderRequest) UnmarshalJSON ¶
func (m *RenderRequest) UnmarshalJSON(b []byte) error
RenderRequest implement json.Marshaler.
func (*RenderRequest) UnmarshalURLValues ¶
func (m *RenderRequest) UnmarshalURLValues(prefix string, values url.Values) error
RenderRequest implement urlenc.URLValuesUnmarshaler.
func (*RenderRequest) Validate ¶
func (this *RenderRequest) Validate() error
type RenderResponse ¶
type RenderResponse struct { // scenario of this render. Scenario *Scenario `protobuf:"bytes,1,opt,name=scenario,proto3" json:"scenario,omitempty"` // protocol means rendered protocol detail. Protocol *ComponentProtocol `protobuf:"bytes,2,opt,name=protocol,proto3" json:"protocol,omitempty"` // contains filtered or unexported fields }
RenderResponse
func (*RenderResponse) Descriptor
deprecated
func (*RenderResponse) Descriptor() ([]byte, []int)
Deprecated: Use RenderResponse.ProtoReflect.Descriptor instead.
func (*RenderResponse) GetProtocol ¶
func (x *RenderResponse) GetProtocol() *ComponentProtocol
func (*RenderResponse) GetScenario ¶
func (x *RenderResponse) GetScenario() *Scenario
func (*RenderResponse) MarshalJSON ¶
func (m *RenderResponse) MarshalJSON() ([]byte, error)
RenderResponse implement json.Marshaler.
func (*RenderResponse) ProtoMessage ¶
func (*RenderResponse) ProtoMessage()
func (*RenderResponse) ProtoReflect ¶
func (x *RenderResponse) ProtoReflect() protoreflect.Message
func (*RenderResponse) Reset ¶
func (x *RenderResponse) Reset()
func (*RenderResponse) String ¶
func (x *RenderResponse) String() string
func (*RenderResponse) UnmarshalJSON ¶
func (m *RenderResponse) UnmarshalJSON(b []byte) error
RenderResponse implement json.Marshaler.
func (*RenderResponse) UnmarshalURLValues ¶
func (m *RenderResponse) UnmarshalURLValues(prefix string, values url.Values) error
RenderResponse implement urlenc.URLValuesUnmarshaler.
func (*RenderResponse) Validate ¶
func (this *RenderResponse) Validate() error
type Scenario ¶
type Scenario struct { // scenarioKey is the key of scenario. // Required. ScenarioKey string `protobuf:"bytes,1,opt,name=scenarioKey,proto3" json:"scenarioKey,omitempty"` // scenarioType is the type of scenario. // Optional. ScenarioType string `protobuf:"bytes,2,opt,name=scenarioType,proto3" json:"scenarioType,omitempty"` // contains filtered or unexported fields }
Scenario represents protocol scenario.
func (*Scenario) Descriptor
deprecated
func (*Scenario) GetScenarioKey ¶
func (*Scenario) GetScenarioType ¶
func (*Scenario) MarshalJSON ¶
Scenario implement json.Marshaler.
func (*Scenario) ProtoMessage ¶
func (*Scenario) ProtoMessage()
func (*Scenario) ProtoReflect ¶
func (x *Scenario) ProtoReflect() protoreflect.Message
func (*Scenario) UnmarshalJSON ¶
Scenario implement json.Marshaler.
func (*Scenario) UnmarshalURLValues ¶
Scenario implement urlenc.URLValuesUnmarshaler.
type UnimplementedCPServiceServer ¶
type UnimplementedCPServiceServer struct { }
UnimplementedCPServiceServer should be embedded to have forward compatible implementations.
func (*UnimplementedCPServiceServer) Render ¶
func (*UnimplementedCPServiceServer) Render(context.Context, *RenderRequest) (*RenderResponse, error)