demo

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2020 License: Apache-2.0 Imports: 9 Imported by: 0

README

Demo cluster

This is a sample cluster that you can experiment with.

Documentation

Index

Constants

This section is empty.

Variables

Functions

func RegisterDemoServiceServer

func RegisterDemoServiceServer(s *grpc.Server, srv DemoServiceServer)

Types

type DemoServiceClient

type DemoServiceClient interface {
	// This method returns a line from one of the Liff books.
	Liff(ctx context.Context, in *LiffRequest, opts ...grpc.CallOption) (*LiffResponse, error)
}

DemoServiceClient is the client API for DemoService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

type DemoServiceServer

type DemoServiceServer interface {
	// This method returns a line from one of the Liff books.
	Liff(context.Context, *LiffRequest) (*LiffResponse, error)
}

DemoServiceServer is the server API for DemoService service.

type LiffRequest

type LiffRequest struct {
	ID int64 `protobuf:"varint,1,opt,name=ID,proto3" json:"ID,omitempty"`
	// contains filtered or unexported fields
}

func (*LiffRequest) Descriptor deprecated

func (*LiffRequest) Descriptor() ([]byte, []int)

Deprecated: Use LiffRequest.ProtoReflect.Descriptor instead.

func (*LiffRequest) GetID

func (x *LiffRequest) GetID() int64

func (*LiffRequest) ProtoMessage

func (*LiffRequest) ProtoMessage()

func (*LiffRequest) ProtoReflect added in v0.0.4

func (x *LiffRequest) ProtoReflect() protoreflect.Message

func (*LiffRequest) Reset

func (x *LiffRequest) Reset()

func (*LiffRequest) String

func (x *LiffRequest) String() string

type LiffResponse

type LiffResponse struct {
	ID         int64  `protobuf:"varint,1,opt,name=ID,proto3" json:"ID,omitempty"`                // This is the request ID
	Definition string `protobuf:"bytes,2,opt,name=Definition,proto3" json:"Definition,omitempty"` //
	NodeID     string `protobuf:"bytes,3,opt,name=NodeID,proto3" json:"NodeID,omitempty"`         // This is the node running the service
	// contains filtered or unexported fields
}

func (*LiffResponse) Descriptor deprecated

func (*LiffResponse) Descriptor() ([]byte, []int)

Deprecated: Use LiffResponse.ProtoReflect.Descriptor instead.

func (*LiffResponse) GetDefinition

func (x *LiffResponse) GetDefinition() string

func (*LiffResponse) GetID

func (x *LiffResponse) GetID() int64

func (*LiffResponse) GetNodeID

func (x *LiffResponse) GetNodeID() string

func (*LiffResponse) ProtoMessage

func (*LiffResponse) ProtoMessage()

func (*LiffResponse) ProtoReflect added in v0.0.4

func (x *LiffResponse) ProtoReflect() protoreflect.Message

func (*LiffResponse) Reset

func (x *LiffResponse) Reset()

func (*LiffResponse) String

func (x *LiffResponse) String() string

type UnimplementedDemoServiceServer added in v0.0.4

type UnimplementedDemoServiceServer struct {
}

UnimplementedDemoServiceServer can be embedded to have forward compatible implementations.

func (*UnimplementedDemoServiceServer) Liff added in v0.0.4

Directories

Path Synopsis
Package main contains the demo client code.
Package main contains the demo client code.
Package main contains a very simple demo project
Package main contains a very simple demo project

Jump to

Keyboard shortcuts

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