api

package
v0.0.0-...-76ecffb Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2023 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ConfigService_ServiceDesc = grpc_go.ServiceDesc{
	ServiceName: "api.ConfigService",
	HandlerType: (*ConfigServiceServer)(nil),
	Methods: []grpc_go.MethodDesc{
		{
			MethodName: "ListHarbors",
			Handler:    _ConfigService_ListHarbors_Handler,
		},
	},
	Streams:  []grpc_go.StreamDesc{},
	Metadata: "api.proto",
}

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

Functions

func RegisterConfigServiceServer

func RegisterConfigServiceServer(s grpc_go.ServiceRegistrar, srv ConfigServiceServer)

Types

type ConfigServiceClient

type ConfigServiceClient interface {
	ListHarbors(ctx context.Context, in *HarborRequest, opts ...grpc_go.CallOption) (*HarborResponse, common.ErrorWithAttachment)
}

ConfigServiceClient is the client API for ConfigService 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 NewConfigServiceClient

func NewConfigServiceClient(cc *triple.TripleConn) ConfigServiceClient

type ConfigServiceClientImpl

type ConfigServiceClientImpl struct {
	ListHarbors func(ctx context.Context, in *HarborRequest) (*HarborResponse, error)
}

func (*ConfigServiceClientImpl) GetDubboStub

func (*ConfigServiceClientImpl) XXX_InterfaceName

func (c *ConfigServiceClientImpl) XXX_InterfaceName() string

type ConfigServiceServer

type ConfigServiceServer interface {
	ListHarbors(context.Context, *HarborRequest) (*HarborResponse, error)
	// contains filtered or unexported methods
}

ConfigServiceServer is the server API for ConfigService service. All implementations must embed UnimplementedConfigServiceServer for forward compatibility

type Harbor

type Harbor struct {
	Id     int64  `protobuf:"varint,1,opt,name=Id,proto3" json:"Id,omitempty"`        // id of the harbor
	Name   string `protobuf:"bytes,2,opt,name=Name,proto3" json:"Name,omitempty"`     // chinese name of the harbor
	EnName string `protobuf:"bytes,3,opt,name=EnName,proto3" json:"EnName,omitempty"` // english name of the harbor
	// contains filtered or unexported fields
}

func (*Harbor) Descriptor deprecated

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

Deprecated: Use Harbor.ProtoReflect.Descriptor instead.

func (*Harbor) GetEnName

func (x *Harbor) GetEnName() string

func (*Harbor) GetId

func (x *Harbor) GetId() int64

func (*Harbor) GetName

func (x *Harbor) GetName() string

func (*Harbor) ProtoMessage

func (*Harbor) ProtoMessage()

func (*Harbor) ProtoReflect

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

func (*Harbor) Reset

func (x *Harbor) Reset()

func (*Harbor) String

func (x *Harbor) String() string

type HarborRequest

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

func (*HarborRequest) Descriptor deprecated

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

Deprecated: Use HarborRequest.ProtoReflect.Descriptor instead.

func (*HarborRequest) ProtoMessage

func (*HarborRequest) ProtoMessage()

func (*HarborRequest) ProtoReflect

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

func (*HarborRequest) Reset

func (x *HarborRequest) Reset()

func (*HarborRequest) String

func (x *HarborRequest) String() string

type HarborResponse

type HarborResponse struct {
	Data []*Harbor `protobuf:"bytes,1,rep,name=data,proto3" json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*HarborResponse) Descriptor deprecated

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

Deprecated: Use HarborResponse.ProtoReflect.Descriptor instead.

func (*HarborResponse) GetData

func (x *HarborResponse) GetData() []*Harbor

func (*HarborResponse) ProtoMessage

func (*HarborResponse) ProtoMessage()

func (*HarborResponse) ProtoReflect

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

func (*HarborResponse) Reset

func (x *HarborResponse) Reset()

func (*HarborResponse) String

func (x *HarborResponse) String() string

type UnimplementedConfigServiceServer

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

UnimplementedConfigServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedConfigServiceServer) ListHarbors

func (*UnimplementedConfigServiceServer) XXX_GetProxyImpl

func (s *UnimplementedConfigServiceServer) XXX_GetProxyImpl() protocol.Invoker

func (*UnimplementedConfigServiceServer) XXX_InterfaceName

func (s *UnimplementedConfigServiceServer) XXX_InterfaceName() string

func (*UnimplementedConfigServiceServer) XXX_ServiceDesc

func (*UnimplementedConfigServiceServer) XXX_SetProxyImpl

func (s *UnimplementedConfigServiceServer) XXX_SetProxyImpl(impl protocol.Invoker)

type UnsafeConfigServiceServer

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

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

Jump to

Keyboard shortcuts

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