v1

package
v0.4.6 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Entity_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "api.ws.v1.Entity",
	HandlerType: (*EntityServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "GetDeviceEntity",
			Handler:    _Entity_GetEntity_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "api/ws/v1/entity.proto",
}

Entity_ServiceDesc is the grpc.ServiceDesc for Entity 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_api_ws_v1_entity_proto protoreflect.FileDescriptor

Functions

func RegisterEntityHTTPServer

func RegisterEntityHTTPServer(container *go_restful.Container, srv EntityHTTPServer)

func RegisterEntityServer

func RegisterEntityServer(s grpc.ServiceRegistrar, srv EntityServer)

Types

type EntityClient

type EntityClient interface {
	GetEntity(ctx context.Context, in *GetEntityRequest, opts ...grpc.CallOption) (*GetEntityResponse, error)
}

EntityClient is the client API for Entity 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 NewEntityClient

func NewEntityClient(cc grpc.ClientConnInterface) EntityClient

type EntityHTTPHandler

type EntityHTTPHandler struct {
	// contains filtered or unexported fields
}

func (*EntityHTTPHandler) GetEntity

func (h *EntityHTTPHandler) GetEntity(req *go_restful.Request, resp *go_restful.Response)

type EntityHTTPServer

type EntityHTTPServer interface {
	GetEntity(req *go_restful.Request, resp *go_restful.Response)
}

type EntityServer

type EntityServer interface {
	GetEntity(context.Context, *GetEntityRequest) (*GetEntityResponse, error)
	// contains filtered or unexported methods
}

EntityServer is the server API for Entity service. All implementations must embed UnimplementedEntityServer for forward compatibility

type GetEntityRequest

type GetEntityRequest struct {
	// contains filtered or unexported fields
}

func (*GetEntityRequest) Descriptor deprecated

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

Deprecated: Use GetEntityRequest.ProtoReflect.Descriptor instead.

func (*GetEntityRequest) ProtoMessage

func (*GetEntityRequest) ProtoMessage()

func (*GetEntityRequest) ProtoReflect

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

func (*GetEntityRequest) Reset

func (x *GetEntityRequest) Reset()

func (*GetEntityRequest) String

func (x *GetEntityRequest) String() string

type GetEntityResponse

type GetEntityResponse struct {
	// contains filtered or unexported fields
}

func (*GetEntityResponse) Descriptor deprecated

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

Deprecated: Use GetEntityResponse.ProtoReflect.Descriptor instead.

func (*GetEntityResponse) ProtoMessage

func (*GetEntityResponse) ProtoMessage()

func (*GetEntityResponse) ProtoReflect

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

func (*GetEntityResponse) Reset

func (x *GetEntityResponse) Reset()

func (*GetEntityResponse) String

func (x *GetEntityResponse) String() string

type UnimplementedEntityServer

type UnimplementedEntityServer struct {
}

UnimplementedEntityServer must be embedded to have forward compatible implementations.

func (UnimplementedEntityServer) GetEntity

type UnsafeEntityServer

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

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

Jump to

Keyboard shortcuts

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