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")
API is the full API definition.
Functions ¶
func NewRPCServiceServer ¶ added in v0.2.36
func NewRPCServiceServer(coll resource.APIResourceCollection[Gizmo]) interface{}
NewRPCServiceServer returns a new RPC server for the gizmo API.
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 ¶
func NewClientFromConn(conn rpc.ClientConn, remoteName string, name resource.Name, logger golog.Logger) Gizmo
NewClientFromConn creates a new gizmo RPC client from an existing connection.
Click to show internal directories.
Click to hide internal directories.