gizmoapi

package
v0.2.33 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 31, 2023 License: AGPL-3.0 Imports: 15 Imported by: 0

Documentation

Overview

Package gizmoapi implements the acme:component:gizmo API, a demonstraction API showcasing the available GRPC method types.

Index

Constants

This section is empty.

Variables

Functions

func Named

func Named(name string) resource.Name

Named is a helper for getting the named Gizmo's typed resource name.

func NewServer

func NewServer(s subtype.Service) pb.GizmoServiceServer

func NewUnimplementedInterfaceError

func NewUnimplementedInterfaceError(actual interface{}) error

NewUnimplementedInterfaceError is used when there is a failed interface check.

Types

type Gizmo

type Gizmo interface {
	DoOne(ctx context.Context, arg1 string) (bool, error)
	DoOneClientStream(ctx context.Context, arg1 []string) (bool, error)
	DoOneServerStream(ctx context.Context, arg1 string) ([]bool, error)
	DoOneBiDiStream(ctx context.Context, arg1 []string) ([]bool, error)
	DoTwo(ctx context.Context, arg1 bool) (string, error)
	generic.Generic
}

Gizmo defines the Go interface for the component (should match the protobuf methods.)

func FromRobot

func FromRobot(r robot.Robot, name string) (Gizmo, error)

FromRobot is a helper for getting the named Gizmo from the given Robot.

func NewClientFromConn

func NewClientFromConn(conn rpc.ClientConn, name string, logger golog.Logger) Gizmo

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL