Documentation
¶
Index ¶
- Variables
- type Service
- func (svc *Service) Handlers() map[jsonrpc.Method]rpcserver.MethodHandler
- func (svc *Service) Health(context.Context) (json.RawMessage, bool)
- func (svc *Service) Methods() map[jsonrpc.Method]rpcserver.MethodDef
- func (svc *Service) Name() string
- func (Service) VerifySignature(_ context.Context, req *function.VerifySignatureRequest) (*function.VerifySignatureResponse, *jsonrpc.Error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ( SpecInfo = openrpc.Info{ Title: "Kwil DB function service", Description: `The JSON-RPC "function" service for Kwil DB.`, License: &openrpc.License{ Name: "CC0-1.0", URL: "https://creativecommons.org/publicdomain/zero/1.0/legalcode", }, Version: "0.1.0", } )
Functions ¶
This section is empty.
Types ¶
type Service ¶
type Service struct{}
func (*Service) Handlers ¶
func (svc *Service) Handlers() map[jsonrpc.Method]rpcserver.MethodHandler
func (*Service) Health ¶ added in v0.9.0
Health for the function service is just a non-empty string, no real health.
func (Service) VerifySignature ¶
func (Service) VerifySignature(_ context.Context, req *function.VerifySignatureRequest) (*function.VerifySignatureResponse, *jsonrpc.Error)
VerifySignature checks the signature with the given public key and message. This only verifies the signature against known kwil-db singing schema, which is determined by the signature's type.
Click to show internal directories.
Click to hide internal directories.