protocol

package
v0.0.0-...-914dbf1 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ConWire_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "ConWire",
	HandlerType: (*ConWireServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Push",
			Handler:    _ConWire_Push_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "protocol/protocol.proto",
}

ConWire_ServiceDesc is the grpc.ServiceDesc for ConWire service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

View Source
var File_protocol_protocol_proto protoreflect.FileDescriptor

Functions

func RegisterConWireServer

func RegisterConWireServer(s grpc.ServiceRegistrar, srv ConWireServer)

Types

type ConWireClient

type ConWireClient interface {
	Push(ctx context.Context, in *Usecase, opts ...grpc.CallOption) (*Response, error)
}

ConWireClient is the client API for ConWire service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

func NewConWireClient

func NewConWireClient(cc grpc.ClientConnInterface) ConWireClient

type ConWireServer

type ConWireServer interface {
	Push(context.Context, *Usecase) (*Response, error)
	// contains filtered or unexported methods
}

ConWireServer is the server API for ConWire service. All implementations must embed UnimplementedConWireServer for forward compatibility

type Response

type Response struct {
	Result string `protobuf:"bytes,1,opt,name=result,proto3" json:"result,omitempty"`
	// contains filtered or unexported fields
}

func (*Response) Descriptor deprecated

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

Deprecated: Use Response.ProtoReflect.Descriptor instead.

func (*Response) GetResult

func (x *Response) GetResult() string

func (*Response) ProtoMessage

func (*Response) ProtoMessage()

func (*Response) ProtoReflect

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

func (*Response) Reset

func (x *Response) Reset()

func (*Response) String

func (x *Response) String() string

type UnimplementedConWireServer

type UnimplementedConWireServer struct {
}

UnimplementedConWireServer must be embedded to have forward compatible implementations.

func (UnimplementedConWireServer) Push

type UnsafeConWireServer

type UnsafeConWireServer interface {
	// contains filtered or unexported methods
}

UnsafeConWireServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ConWireServer will result in compilation errors.

type Usecase

type Usecase struct {
	Name      string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Policy    string `protobuf:"bytes,2,opt,name=policy,proto3" json:"policy,omitempty"`
	Devices   string `protobuf:"bytes,3,opt,name=devices,proto3" json:"devices,omitempty"`
	Endpoints string `protobuf:"bytes,5,opt,name=endpoints,proto3" json:"endpoints,omitempty"`
	// contains filtered or unexported fields
}

func (*Usecase) Descriptor deprecated

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

Deprecated: Use Usecase.ProtoReflect.Descriptor instead.

func (*Usecase) GetDevices

func (x *Usecase) GetDevices() string

func (*Usecase) GetEndpoints

func (x *Usecase) GetEndpoints() string

func (*Usecase) GetName

func (x *Usecase) GetName() string

func (*Usecase) GetPolicy

func (x *Usecase) GetPolicy() string

func (*Usecase) ProtoMessage

func (*Usecase) ProtoMessage()

func (*Usecase) ProtoReflect

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

func (*Usecase) Reset

func (x *Usecase) Reset()

func (*Usecase) String

func (x *Usecase) String() string

Jump to

Keyboard shortcuts

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