Versions in this module Expand all Collapse all v1 v1.0.3 Mar 22, 2026 v1.0.2 Mar 22, 2026 v1.0.1 Mar 22, 2026 v1.0.0 Mar 22, 2026 Changes in this version + func ClientCLIFiles(genpkg string, data *ServicesData) []*codegen.File + func ClientEncodeDecodeFile(genpkg string, svc *expr.HTTPServiceExpr, services *ServicesData) *codegen.File + func ClientFiles(genpkg string, data *ServicesData) []*codegen.File + func ClientTypeFiles(genpkg string, data *ServicesData) []*codegen.File + func ExampleCLI(genpkg string, svr *expr.ServerExpr, services *ServicesData) *codegen.File + func ExampleCLIFiles(genpkg string, services *ServicesData) []*codegen.File + func ExampleServer(genpkg string, root *expr.RootExpr, svr *expr.ServerExpr, ...) *codegen.File + func ExampleServerFiles(genpkg string, data *ServicesData) []*codegen.File + func HasSSE(data *ServiceData) bool + func HasWebSocket(sd *ServiceData) bool + func IsSSEEndpoint(ed *EndpointData) bool + func IsWebSocketEndpoint(ed *EndpointData) bool + func NeedDialer(data []*ServiceData) bool + func OpenAPIFiles(root *expr.RootExpr) ([]*codegen.File, error) + func PathFiles(data *ServicesData) []*codegen.File + func RunHTTPDSL(t *testing.T, dsl func()) *expr.RootExpr + func ServerEncodeDecodeFile(genpkg string, svc *expr.HTTPServiceExpr, services *ServicesData) *codegen.File + func ServerFiles(genpkg string, data *ServicesData) []*codegen.File + func ServerTypeFiles(genpkg string, data *ServicesData) []*codegen.File + func WebsocketClientFile(genpkg string, svc *expr.HTTPServiceExpr, services *ServicesData) *codegen.File + type AttributeData struct + DefaultValue any + Description string + Example any + FieldName string + FieldPointer bool + FieldType expr.DataType + IsAliased bool + Name string + Pointer bool + Required bool + ServiceTypeRef string + Type expr.DataType + TypeName string + TypeRef string + Validate string + VarName string + type CookieData struct + Domain string + HTTPOnly bool + MaxAge string + Path string + SameSite string + Secure bool + type Element struct + AttributeName string + HTTPName string + Slice bool + StringSlice bool + type EndpointData struct + BasicScheme *service.SchemeData + BodySchemes service.SchemesData + BuildStreamPayload string + ClientStruct string + ClientWebSocket *WebSocketData + EndpointInit string + ErrorEncoder string + Errors []*ErrorGroupData + HandlerInit string + HasMixedResults bool + HeaderSchemes service.SchemesData + Method *service.MethodData + MountHandler string + MultipartRequestDecoder *MultipartData + MultipartRequestEncoder *MultipartData + Payload *PayloadData + QuerySchemes service.SchemesData + Redirect *RedirectData + RequestDecoder string + RequestEncoder string + RequestInit *InitData + Requirements service.RequirementsData + ResponseDecoder string + ResponseEncoder string + Result *ResultData + Routes []*RouteData + SSE *SSEData + ServerWebSocket *WebSocketData + ServiceName string + ServicePkgName string + ServiceVarName string + type ErrorData struct + Name string + Ref string + Response *ResponseData + type ErrorGroupData struct + Errors []*ErrorData + StatusCode string + type FileServerData struct + ArgName string + FilePath string + IsDir bool + MountHandler string + PathParam string + Redirect *RedirectData + RequestPaths []string + VarName string + type HeaderData struct + CanonicalName string + type InitArgData struct + Ref string + type InitData struct + CLIArgs []*InitArgData + ClientArgs []*InitArgData + ClientCode string + Description string + Name string + ReturnIsPrimitivePointer bool + ReturnIsStruct bool + ReturnTypeAttribute string + ReturnTypeName string + ReturnTypePkg string + ReturnTypeRef string + ServerArgs []*InitArgData + ServerCode string + type MultipartData struct + FuncName string + InitName string + MethodName string + Payload *PayloadData + ServiceName string + VarName string + type MultipartFileFieldData struct + HTTPName string + Name string + PopulateContentType bool + PopulateFilename bool + Required bool + type ParamData struct + Map bool + MapQueryParams *string + MapStringSlice bool + type PayloadData struct + DecoderReturnValue string + IDAttribute string + IDAttributeRequired bool + Name string + Ref string + Request *RequestData + type RedirectData struct + StatusCode string + URL string + type RequestData struct + ClientBody *TypeData + Cookies []*CookieData + FormEncoded bool + Headers []*HeaderData + Multipart bool + MultipartFileFields []*MultipartFileFieldData + MultipartGenerated bool + MustHaveBody bool + MustValidate bool + PathParams []*ParamData + PayloadAttr string + PayloadInit *InitData + PayloadType expr.DataType + QueryParams []*ParamData + ServerBody *TypeData + type ResponseData struct + ClientBody *TypeData + Code int + ContentType string + Cookies []*CookieData + Description string + ErrorHeader string + Headers []*HeaderData + MustValidate bool + ResultAttr string + ResultInit *InitData + ServerBody []*TypeData + StatusCode string + TagName string + TagPointer bool + TagValue string + ViewedResult *service.ViewedResultTypeData + type ResultData struct + IDAttribute string + IDAttributeRequired bool + Inits []*InitData + IsStruct bool + MustInit bool + Name string + Ref string + Responses []*ResponseData + View string + type RouteData struct + Path string + PathInit *InitData + Verb string + type SSEData struct + DataField string + DataFieldTypeRef string + EventField string + EventIsStruct bool + EventTypeName string + EventTypeRef string + HasResponseBody bool + IDField string + Interface string + RecvDesc string + RecvName string + RequestIDField string + RequestIDPointer bool + RetryField string + SendDesc string + SendName string + SendWithContextDesc string + SendWithContextName string + StructName string + type ServiceData struct + ClientBodyAttributeTypes []*TypeData + ClientStruct string + ClientTransformHelpers []*codegen.TransformFunctionData + ClientTypeNames map[string]bool + Endpoints []*EndpointData + FileServers []*FileServerData + MountPointStruct string + MountServer string + Scope *codegen.NameScope + ServerBodyAttributeTypes []*TypeData + ServerInit string + ServerService string + ServerStruct string + ServerTransformHelpers []*codegen.TransformFunctionData + ServerTypeNames map[string]bool + Service *service.Data + UnionTypes []*service.UnionTypeData + func (svc *ServiceData) Endpoint(name string) *EndpointData + type ServicesData struct + Expressions *expr.HTTPExpr + HTTPData map[string]*ServiceData + func CreateHTTPServices(root *expr.RootExpr) *ServicesData + func NewServicesData(services *service.ServicesData, expressions *expr.HTTPExpr) *ServicesData + func (sds *ServicesData) Get(name string) *ServiceData + type TypeData struct + Def string + Description string + Example any + FlatFormUnionField string + Init *InitData + Name string + Ref string + ValidateDef string + ValidateRef string + VarName string + View string + type WebSocketData struct + Endpoint *EndpointData + Interface string + Kind expr.StreamKind + MustClose bool + Payload *TypeData + PkgName string + RecvDesc string + RecvName string + RecvTypeIsPointer bool + RecvTypeName string + RecvTypeRef string + RecvWithContextDesc string + RecvWithContextName string + Response *ResponseData + SendDesc string + SendName string + SendTypeName string + SendTypeRef string + SendWithContextDesc string + SendWithContextName string + Type string + VarName string