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 API = resource.APINamespace("acme").WithComponentType("gizmo")
Functions ¶
func NewRPCServiceServer ¶ added in v0.2.36
func NewRPCServiceServer(coll resource.APIResourceCollection[Gizmo]) interface{}
Types ¶
type Gizmo ¶
type Gizmo interface { resource.Resource 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) }
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.