Documentation
¶
Index ¶
- func Run(configPath string)
- func Setup() *cobra.Command
- func SetupHTTPServer(responder Responder)
- type Bottom
- func (w *Bottom) Error(writer http.ResponseWriter, r *http.Request, err error, statusCode int)
- func (w *Bottom) NotFound(writer http.ResponseWriter, r *http.Request)
- func (w *Bottom) RunFunction(ctx context.Context, f *bottomProto.Function) (*bottomProto.FunctionResult, error)
- func (w *Bottom) RunFunctionHttp(ctx context.Context, f *Function) (*FunctionResult, error)
- type Client
- type Config
- type Function
- type FunctionResult
- type GRPCClient
- type GRPCServer
- type Number
- type Responder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetupHTTPServer ¶
func SetupHTTPServer(responder Responder)
Types ¶
type Bottom ¶
type Bottom struct { ThreadCount int Actions chan func() Tracer trace.Tracer bottomProto.UnimplementedBottomServer }
func (*Bottom) RunFunction ¶
func (w *Bottom) RunFunction(ctx context.Context, f *bottomProto.Function) (*bottomProto.FunctionResult, error)
func (*Bottom) RunFunctionHttp ¶
type Client ¶
func (*Client) RunFunction ¶
type FunctionResult ¶
type FunctionResult struct {
Value int
}
type GRPCClient ¶
type GRPCClient struct { Connection *grpc.ClientConn Client bottomProto.BottomClient }
func NewGRPCClient ¶
func (*GRPCClient) RunFunction ¶
func (g *GRPCClient) RunFunction(methodContext context.Context, f *Function) (*FunctionResult, error)
type GRPCServer ¶
func NewGRPCServer ¶
func NewGRPCServer(port int, bottom *Bottom) (*GRPCServer, error)
Click to show internal directories.
Click to hide internal directories.