Documentation
¶
Overview ¶
Package transfermarkt is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Constants
- Variables
- func RegisterTransfermarktServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterTransfermarktServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client TransfermarktServiceClient) error
- func RegisterTransfermarktServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterTransfermarktServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server TransfermarktServiceServer) error
- func RegisterTransfermarktServiceServer(s grpc.ServiceRegistrar, srv TransfermarktServiceServer)
- type SayHelloRequest
- func (*SayHelloRequest) Descriptor() ([]byte, []int)deprecated
- func (x *SayHelloRequest) GetName() string
- func (x *SayHelloRequest) GetPage() *v1.Pages
- func (*SayHelloRequest) ProtoMessage()
- func (x *SayHelloRequest) ProtoReflect() protoreflect.Message
- func (x *SayHelloRequest) Reset()
- func (x *SayHelloRequest) String() string
- func (m *SayHelloRequest) Validate() error
- type SayHelloRequestValidationError
- func (e SayHelloRequestValidationError) Cause() error
- func (e SayHelloRequestValidationError) Error() string
- func (e SayHelloRequestValidationError) ErrorName() string
- func (e SayHelloRequestValidationError) Field() string
- func (e SayHelloRequestValidationError) Key() bool
- func (e SayHelloRequestValidationError) Reason() string
- type SayHelloResponse
- func (*SayHelloResponse) Descriptor() ([]byte, []int)deprecated
- func (x *SayHelloResponse) GetResponse() *v11.SayHelloResponse
- func (*SayHelloResponse) ProtoMessage()
- func (x *SayHelloResponse) ProtoReflect() protoreflect.Message
- func (x *SayHelloResponse) Reset()
- func (x *SayHelloResponse) String() string
- func (m *SayHelloResponse) Validate() error
- type SayHelloResponseValidationError
- func (e SayHelloResponseValidationError) Cause() error
- func (e SayHelloResponseValidationError) Error() string
- func (e SayHelloResponseValidationError) ErrorName() string
- func (e SayHelloResponseValidationError) Field() string
- func (e SayHelloResponseValidationError) Key() bool
- func (e SayHelloResponseValidationError) Reason() string
- type StatusRequest
- type StatusRequestValidationError
- func (e StatusRequestValidationError) Cause() error
- func (e StatusRequestValidationError) Error() string
- func (e StatusRequestValidationError) ErrorName() string
- func (e StatusRequestValidationError) Field() string
- func (e StatusRequestValidationError) Key() bool
- func (e StatusRequestValidationError) Reason() string
- type StatusResponse
- func (*StatusResponse) Descriptor() ([]byte, []int)deprecated
- func (x *StatusResponse) GetMessage() string
- func (*StatusResponse) ProtoMessage()
- func (x *StatusResponse) ProtoReflect() protoreflect.Message
- func (x *StatusResponse) Reset()
- func (x *StatusResponse) String() string
- func (m *StatusResponse) Validate() error
- type StatusResponseValidationError
- func (e StatusResponseValidationError) Cause() error
- func (e StatusResponseValidationError) Error() string
- func (e StatusResponseValidationError) ErrorName() string
- func (e StatusResponseValidationError) Field() string
- func (e StatusResponseValidationError) Key() bool
- func (e StatusResponseValidationError) Reason() string
- type TransfermarktServiceClient
- type TransfermarktServiceServer
- type UnimplementedTransfermarktServiceServer
- type UnsafeTransfermarktServiceServer
Constants ¶
const ( TransfermarktService_SayHello_FullMethodName = "/tickex.transfermarkt.v1.TransfermarktService/SayHello" TransfermarktService_Status_FullMethodName = "/tickex.transfermarkt.v1.TransfermarktService/Status" )
Variables ¶
var File_transfermarkt_proto protoreflect.FileDescriptor
var TransfermarktService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "tickex.transfermarkt.v1.TransfermarktService", HandlerType: (*TransfermarktServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "SayHello", Handler: _TransfermarktService_SayHello_Handler, }, { MethodName: "Status", Handler: _TransfermarktService_Status_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "transfermarkt.proto", }
TransfermarktService_ServiceDesc is the grpc.ServiceDesc for TransfermarktService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterTransfermarktServiceHandler ¶
func RegisterTransfermarktServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
RegisterTransfermarktServiceHandler registers the http handlers for service TransfermarktService to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterTransfermarktServiceHandlerClient ¶
func RegisterTransfermarktServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client TransfermarktServiceClient) error
RegisterTransfermarktServiceHandlerClient registers the http handlers for service TransfermarktService to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "TransfermarktServiceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "TransfermarktServiceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "TransfermarktServiceClient" to call the correct interceptors. This client ignores the HTTP middlewares.
func RegisterTransfermarktServiceHandlerFromEndpoint ¶
func RegisterTransfermarktServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterTransfermarktServiceHandlerFromEndpoint is same as RegisterTransfermarktServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterTransfermarktServiceHandlerServer ¶
func RegisterTransfermarktServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server TransfermarktServiceServer) error
RegisterTransfermarktServiceHandlerServer registers the http handlers for service TransfermarktService to "mux". UnaryRPC :call TransfermarktServiceServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterTransfermarktServiceHandlerFromEndpoint instead. GRPC interceptors will not work for this type of registration. To use interceptors, you must use the "runtime.WithMiddlewares" option in the "runtime.NewServeMux" call.
func RegisterTransfermarktServiceServer ¶
func RegisterTransfermarktServiceServer(s grpc.ServiceRegistrar, srv TransfermarktServiceServer)
Types ¶
type SayHelloRequest ¶
type SayHelloRequest struct { Page *v1.Pages `protobuf:"bytes,1,opt,name=page,proto3" json:"page,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` // contains filtered or unexported fields }
func (*SayHelloRequest) Descriptor
deprecated
func (*SayHelloRequest) Descriptor() ([]byte, []int)
Deprecated: Use SayHelloRequest.ProtoReflect.Descriptor instead.
func (*SayHelloRequest) GetName ¶
func (x *SayHelloRequest) GetName() string
func (*SayHelloRequest) GetPage ¶
func (x *SayHelloRequest) GetPage() *v1.Pages
func (*SayHelloRequest) ProtoMessage ¶
func (*SayHelloRequest) ProtoMessage()
func (*SayHelloRequest) ProtoReflect ¶
func (x *SayHelloRequest) ProtoReflect() protoreflect.Message
func (*SayHelloRequest) Reset ¶
func (x *SayHelloRequest) Reset()
func (*SayHelloRequest) String ¶
func (x *SayHelloRequest) String() string
func (*SayHelloRequest) Validate ¶
func (m *SayHelloRequest) Validate() error
Validate checks the field values on SayHelloRequest with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type SayHelloRequestValidationError ¶
type SayHelloRequestValidationError struct {
// contains filtered or unexported fields
}
SayHelloRequestValidationError is the validation error returned by SayHelloRequest.Validate if the designated constraints aren't met.
func (SayHelloRequestValidationError) Cause ¶
func (e SayHelloRequestValidationError) Cause() error
Cause function returns cause value.
func (SayHelloRequestValidationError) Error ¶
func (e SayHelloRequestValidationError) Error() string
Error satisfies the builtin error interface
func (SayHelloRequestValidationError) ErrorName ¶
func (e SayHelloRequestValidationError) ErrorName() string
ErrorName returns error name.
func (SayHelloRequestValidationError) Field ¶
func (e SayHelloRequestValidationError) Field() string
Field function returns field value.
func (SayHelloRequestValidationError) Key ¶
func (e SayHelloRequestValidationError) Key() bool
Key function returns key value.
func (SayHelloRequestValidationError) Reason ¶
func (e SayHelloRequestValidationError) Reason() string
Reason function returns reason value.
type SayHelloResponse ¶
type SayHelloResponse struct { Response *v11.SayHelloResponse `protobuf:"bytes,1,opt,name=response,proto3" json:"response,omitempty"` // contains filtered or unexported fields }
func (*SayHelloResponse) Descriptor
deprecated
func (*SayHelloResponse) Descriptor() ([]byte, []int)
Deprecated: Use SayHelloResponse.ProtoReflect.Descriptor instead.
func (*SayHelloResponse) GetResponse ¶
func (x *SayHelloResponse) GetResponse() *v11.SayHelloResponse
func (*SayHelloResponse) ProtoMessage ¶
func (*SayHelloResponse) ProtoMessage()
func (*SayHelloResponse) ProtoReflect ¶
func (x *SayHelloResponse) ProtoReflect() protoreflect.Message
func (*SayHelloResponse) Reset ¶
func (x *SayHelloResponse) Reset()
func (*SayHelloResponse) String ¶
func (x *SayHelloResponse) String() string
func (*SayHelloResponse) Validate ¶
func (m *SayHelloResponse) Validate() error
Validate checks the field values on SayHelloResponse with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type SayHelloResponseValidationError ¶
type SayHelloResponseValidationError struct {
// contains filtered or unexported fields
}
SayHelloResponseValidationError is the validation error returned by SayHelloResponse.Validate if the designated constraints aren't met.
func (SayHelloResponseValidationError) Cause ¶
func (e SayHelloResponseValidationError) Cause() error
Cause function returns cause value.
func (SayHelloResponseValidationError) Error ¶
func (e SayHelloResponseValidationError) Error() string
Error satisfies the builtin error interface
func (SayHelloResponseValidationError) ErrorName ¶
func (e SayHelloResponseValidationError) ErrorName() string
ErrorName returns error name.
func (SayHelloResponseValidationError) Field ¶
func (e SayHelloResponseValidationError) Field() string
Field function returns field value.
func (SayHelloResponseValidationError) Key ¶
func (e SayHelloResponseValidationError) Key() bool
Key function returns key value.
func (SayHelloResponseValidationError) Reason ¶
func (e SayHelloResponseValidationError) Reason() string
Reason function returns reason value.
type StatusRequest ¶
type StatusRequest struct {
// contains filtered or unexported fields
}
func (*StatusRequest) Descriptor
deprecated
func (*StatusRequest) Descriptor() ([]byte, []int)
Deprecated: Use StatusRequest.ProtoReflect.Descriptor instead.
func (*StatusRequest) ProtoMessage ¶
func (*StatusRequest) ProtoMessage()
func (*StatusRequest) ProtoReflect ¶
func (x *StatusRequest) ProtoReflect() protoreflect.Message
func (*StatusRequest) Reset ¶
func (x *StatusRequest) Reset()
func (*StatusRequest) String ¶
func (x *StatusRequest) String() string
func (*StatusRequest) Validate ¶
func (m *StatusRequest) Validate() error
Validate checks the field values on StatusRequest with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type StatusRequestValidationError ¶
type StatusRequestValidationError struct {
// contains filtered or unexported fields
}
StatusRequestValidationError is the validation error returned by StatusRequest.Validate if the designated constraints aren't met.
func (StatusRequestValidationError) Cause ¶
func (e StatusRequestValidationError) Cause() error
Cause function returns cause value.
func (StatusRequestValidationError) Error ¶
func (e StatusRequestValidationError) Error() string
Error satisfies the builtin error interface
func (StatusRequestValidationError) ErrorName ¶
func (e StatusRequestValidationError) ErrorName() string
ErrorName returns error name.
func (StatusRequestValidationError) Field ¶
func (e StatusRequestValidationError) Field() string
Field function returns field value.
func (StatusRequestValidationError) Key ¶
func (e StatusRequestValidationError) Key() bool
Key function returns key value.
func (StatusRequestValidationError) Reason ¶
func (e StatusRequestValidationError) Reason() string
Reason function returns reason value.
type StatusResponse ¶
type StatusResponse struct { Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"` // contains filtered or unexported fields }
func (*StatusResponse) Descriptor
deprecated
func (*StatusResponse) Descriptor() ([]byte, []int)
Deprecated: Use StatusResponse.ProtoReflect.Descriptor instead.
func (*StatusResponse) GetMessage ¶
func (x *StatusResponse) GetMessage() string
func (*StatusResponse) ProtoMessage ¶
func (*StatusResponse) ProtoMessage()
func (*StatusResponse) ProtoReflect ¶
func (x *StatusResponse) ProtoReflect() protoreflect.Message
func (*StatusResponse) Reset ¶
func (x *StatusResponse) Reset()
func (*StatusResponse) String ¶
func (x *StatusResponse) String() string
func (*StatusResponse) Validate ¶
func (m *StatusResponse) Validate() error
Validate checks the field values on StatusResponse with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type StatusResponseValidationError ¶
type StatusResponseValidationError struct {
// contains filtered or unexported fields
}
StatusResponseValidationError is the validation error returned by StatusResponse.Validate if the designated constraints aren't met.
func (StatusResponseValidationError) Cause ¶
func (e StatusResponseValidationError) Cause() error
Cause function returns cause value.
func (StatusResponseValidationError) Error ¶
func (e StatusResponseValidationError) Error() string
Error satisfies the builtin error interface
func (StatusResponseValidationError) ErrorName ¶
func (e StatusResponseValidationError) ErrorName() string
ErrorName returns error name.
func (StatusResponseValidationError) Field ¶
func (e StatusResponseValidationError) Field() string
Field function returns field value.
func (StatusResponseValidationError) Key ¶
func (e StatusResponseValidationError) Key() bool
Key function returns key value.
func (StatusResponseValidationError) Reason ¶
func (e StatusResponseValidationError) Reason() string
Reason function returns reason value.
type TransfermarktServiceClient ¶
type TransfermarktServiceClient interface { SayHello(ctx context.Context, in *SayHelloRequest, opts ...grpc.CallOption) (*SayHelloResponse, error) Status(ctx context.Context, in *StatusRequest, opts ...grpc.CallOption) (*StatusResponse, error) }
TransfermarktServiceClient is the client API for TransfermarktService 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 NewTransfermarktServiceClient ¶
func NewTransfermarktServiceClient(cc grpc.ClientConnInterface) TransfermarktServiceClient
type TransfermarktServiceServer ¶
type TransfermarktServiceServer interface { SayHello(context.Context, *SayHelloRequest) (*SayHelloResponse, error) Status(context.Context, *StatusRequest) (*StatusResponse, error) // contains filtered or unexported methods }
TransfermarktServiceServer is the server API for TransfermarktService service. All implementations must embed UnimplementedTransfermarktServiceServer for forward compatibility.
type UnimplementedTransfermarktServiceServer ¶
type UnimplementedTransfermarktServiceServer struct{}
UnimplementedTransfermarktServiceServer must be embedded to have forward compatible implementations.
NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.
func (UnimplementedTransfermarktServiceServer) SayHello ¶
func (UnimplementedTransfermarktServiceServer) SayHello(context.Context, *SayHelloRequest) (*SayHelloResponse, error)
func (UnimplementedTransfermarktServiceServer) Status ¶
func (UnimplementedTransfermarktServiceServer) Status(context.Context, *StatusRequest) (*StatusResponse, error)
type UnsafeTransfermarktServiceServer ¶
type UnsafeTransfermarktServiceServer interface {
// contains filtered or unexported methods
}
UnsafeTransfermarktServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to TransfermarktServiceServer will result in compilation errors.