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 ¶
View Source
var Subtype = resource.NewSubtype( resource.Namespace("acme"), resource.ResourceTypeComponent, resource.SubtypeName("gizmo"), )
Functions ¶
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 NewClientFromConn ¶
Click to show internal directories.
Click to hide internal directories.