Documentation ¶
Index ¶
- Constants
- func NewEditorServiceServer(builder func() EditorService, hooks ...httprpc.HooksBuilder) httprpc.Server
- func NewQueryServiceServer(builder func() QueryService, hooks ...httprpc.HooksBuilder) httprpc.Server
- func NewServer(builder interface{}, hooks ...httprpc.HooksBuilder) (httprpc.Server, bool)
- type EditorService
- type EditorServiceServer
- type QueryService
- type QueryServiceServer
Constants ¶
View Source
const EditorServicePathPrefix = "/api/flow/def/editor/"
View Source
const Path_Editor_CreateFlow = "/api/flow/def/editor/CreateFlow"
View Source
const Path_Editor_UpdateFlow = "/api/flow/def/editor/UpdateFlow"
View Source
const Path_Query_GetFlowByID = "/api/flow/def/query/GetFlowByID"
View Source
const Path_Query_GetFlowByParam = "/api/flow/def/query/GetFlowByParam"
View Source
const QueryServicePathPrefix = "/api/flow/def/query/"
Variables ¶
This section is empty.
Functions ¶
func NewEditorServiceServer ¶
func NewEditorServiceServer(builder func() EditorService, hooks ...httprpc.HooksBuilder) httprpc.Server
func NewQueryServiceServer ¶
func NewQueryServiceServer(builder func() QueryService, hooks ...httprpc.HooksBuilder) httprpc.Server
Types ¶
type EditorService ¶
type EditorService interface { CreateFlow(ctx context.Context, req *types.CreateFlowRequest) (*types.CreateFlowResponse, error) UpdateFlow(ctx context.Context, req *types.CreateFlowRequest) (*types.CreateFlowResponse, error) }
+api:path=/api/flow/def/editor
type EditorServiceServer ¶
type EditorServiceServer struct {
// contains filtered or unexported fields
}
func (*EditorServiceServer) PathPrefix ¶
func (s *EditorServiceServer) PathPrefix() string
func (*EditorServiceServer) ServeHTTP ¶
func (s *EditorServiceServer) ServeHTTP(resp http.ResponseWriter, req *http.Request)
func (*EditorServiceServer) WithHooks ¶
func (s *EditorServiceServer) WithHooks(hooks httprpc.HooksBuilder) httprpc.Server
type QueryService ¶
type QueryService interface { GetFlowByID(ctx context.Context, req *types.GetFlowByIDRequest) (*types.FlowResponse, error) GetFlowByParam(ctx context.Context, req *types.GetFlowByParamRequest) (*types.FlowResponse, error) }
+api:path=/api/flow/def/query
type QueryServiceServer ¶
type QueryServiceServer struct {
// contains filtered or unexported fields
}
func (*QueryServiceServer) PathPrefix ¶
func (s *QueryServiceServer) PathPrefix() string
func (*QueryServiceServer) ServeHTTP ¶
func (s *QueryServiceServer) ServeHTTP(resp http.ResponseWriter, req *http.Request)
func (*QueryServiceServer) WithHooks ¶
func (s *QueryServiceServer) WithHooks(hooks httprpc.HooksBuilder) httprpc.Server
Click to show internal directories.
Click to hide internal directories.