Documentation ¶
Index ¶
- Constants
- func ConfigUnmarshalFuncName(param *est.Param, md *meta.Data) string
- type Builder
- func (b *Builder) CacheKeyspaceKeyMapperName(ks *est.CacheKeyspace) string
- func (b *Builder) ConfigUnmarshalers(svc *est.Service) (f *File, err error)
- func (b *Builder) Etype() (f *File, err error)
- func (b *Builder) ForceRuntimeDependency(pkg *est.Package) (f *File, err error)
- func (b *Builder) Main(compilerVersion string) (f *File, err error)
- func (b *Builder) RenderMiddlewares(pkgPath string) (map[*est.Middleware]*Statement, []Code)
- func (b *Builder) ServiceHandlers(svc *est.Service) (f *File, err error)
- func (b *Builder) TestMain(pkg *est.Package, svcs []*est.Service, envToEmbed []string) *File
- func (b *Builder) UserFacing(svc *est.Service, withImpl bool) *File
Constants ¶
View Source
const JsonPkg = "github.com/json-iterator/go"
Variables ¶
This section is empty.
Functions ¶
func ConfigUnmarshalFuncName ¶ added in v1.8.0
ConfigUnmarshalFuncName returns a unique name for an unmarshal function fo a concrete instance of a type. For example the following types will result in the given names:
- `int` -> `encoreInternal_LoadConfig_int` - `ConfigType` -> `encoreInternal_LoadConfig_ConfigType` - `ConfigType[int, string]` -> `encoreInternal_LoadConfig_ConfigType_int_string_`
Types ¶
type Builder ¶
type Builder struct {
// contains filtered or unexported fields
}
func (*Builder) CacheKeyspaceKeyMapperName ¶ added in v1.7.0
func (b *Builder) CacheKeyspaceKeyMapperName(ks *est.CacheKeyspace) string
func (*Builder) ConfigUnmarshalers ¶ added in v1.8.0
ConfigUnmarshalers returns a generated Go file with all the code needed for a service to unmarshal its config.
func (*Builder) ForceRuntimeDependency ¶ added in v1.5.0
func (*Builder) RenderMiddlewares ¶ added in v1.5.0
func (b *Builder) RenderMiddlewares(pkgPath string) (map[*est.Middleware]*Statement, []Code)
func (*Builder) ServiceHandlers ¶ added in v1.4.0
Click to show internal directories.
Click to hide internal directories.