Documentation ¶
Index ¶
- func HandleEvaluationError(err error, reason string) error
- type GRPCService
- func (s GRPCService) ResolveBoolean(ctx context.Context, req *gen.ResolveBooleanRequest) (*gen.ResolveBooleanResponse, error)
- func (s GRPCService) ResolveNumber(ctx context.Context, req *gen.ResolveNumberRequest) (*gen.ResolveNumberResponse, error)
- func (s GRPCService) ResolveObject(ctx context.Context, req *gen.ResolveObjectRequest) (*gen.ResolveObjectResponse, error)
- func (s GRPCService) ResolveString(ctx context.Context, req *gen.ResolveStringRequest) (*gen.ResolveStringResponse, error)
- func (s GRPCService) Serve(ctx context.Context, eval eval.IEvaluator) error
- type GRPCServiceConfiguration
- type HTTPService
- type HTTPServiceConfiguration
- type IService
- type IServiceConfiguration
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HandleEvaluationError ¶ added in v0.0.4
Types ¶
type GRPCService ¶ added in v0.0.4
type GRPCService struct { GRPCServiceConfiguration *GRPCServiceConfiguration gen.UnimplementedServiceServer // contains filtered or unexported fields }
func (GRPCService) ResolveBoolean ¶ added in v0.0.4
func (s GRPCService) ResolveBoolean( ctx context.Context, req *gen.ResolveBooleanRequest, ) (*gen.ResolveBooleanResponse, error)
TODO: might be able to simplify some of this with generics.
func (GRPCService) ResolveNumber ¶ added in v0.0.4
func (s GRPCService) ResolveNumber( ctx context.Context, req *gen.ResolveNumberRequest, ) (*gen.ResolveNumberResponse, error)
func (GRPCService) ResolveObject ¶ added in v0.0.4
func (s GRPCService) ResolveObject( ctx context.Context, req *gen.ResolveObjectRequest, ) (*gen.ResolveObjectResponse, error)
func (GRPCService) ResolveString ¶ added in v0.0.4
func (s GRPCService) ResolveString( ctx context.Context, req *gen.ResolveStringRequest, ) (*gen.ResolveStringResponse, error)
func (GRPCService) Serve ¶ added in v0.0.4
func (s GRPCService) Serve(ctx context.Context, eval eval.IEvaluator) error
type GRPCServiceConfiguration ¶ added in v0.0.4
type GRPCServiceConfiguration struct {
Port int32
}
type HTTPService ¶ added in v0.0.3
type HTTPService struct { HTTPServiceConfiguration *HTTPServiceConfiguration GRPCService *GRPCService }
func (HTTPService) HTTPErrorHandler ¶ added in v0.0.4
func (*HTTPService) Serve ¶ added in v0.0.3
func (s *HTTPService) Serve(ctx context.Context, eval eval.IEvaluator) error
type HTTPServiceConfiguration ¶ added in v0.0.3
type HTTPServiceConfiguration struct {
Port int32
}
type IService ¶
type IService interface {
Serve(ctx context.Context, eval eval.IEvaluator) error
}
IService implementations define handlers for a particular transport, which call the IEvaluator implementation.
type IServiceConfiguration ¶
type IServiceConfiguration interface{}
Click to show internal directories.
Click to hide internal directories.