Documentation
¶
Index ¶
- Variables
- func RegisterConWireServer(s grpc.ServiceRegistrar, srv ConWireServer)
- type ConWireClient
- type ConWireServer
- type Response
- type UnimplementedConWireServer
- type UnsafeConWireServer
- type Usecase
- func (*Usecase) Descriptor() ([]byte, []int)deprecated
- func (x *Usecase) GetDevices() string
- func (x *Usecase) GetEndpoints() string
- func (x *Usecase) GetName() string
- func (x *Usecase) GetPolicy() string
- func (*Usecase) ProtoMessage()
- func (x *Usecase) ProtoReflect() protoreflect.Message
- func (x *Usecase) Reset()
- func (x *Usecase) String() string
Constants ¶
This section is empty.
Variables ¶
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)
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) ProtoMessage ¶
func (*Response) ProtoMessage()
func (*Response) ProtoReflect ¶
func (x *Response) ProtoReflect() protoreflect.Message
type UnimplementedConWireServer ¶
type UnimplementedConWireServer struct { }
UnimplementedConWireServer must be embedded to have forward compatible implementations.
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) GetDevices ¶
func (*Usecase) GetEndpoints ¶
func (*Usecase) ProtoMessage ¶
func (*Usecase) ProtoMessage()
func (*Usecase) ProtoReflect ¶
func (x *Usecase) ProtoReflect() protoreflect.Message