transfermarkt

package
v0.0.0-...-e08653f Latest Latest
Warning

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

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

Documentation

Overview

Package transfermarkt is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

View Source
const (
	TransfermarktService_SayHello_FullMethodName = "/tickex.transfermarkt.v1.TransfermarktService/SayHello"
	TransfermarktService_Status_FullMethodName   = "/tickex.transfermarkt.v1.TransfermarktService/Status"
)

Variables

View Source
var File_transfermarkt_proto protoreflect.FileDescriptor
View Source
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

Cause function returns cause value.

func (SayHelloRequestValidationError) Error

Error satisfies the builtin error interface

func (SayHelloRequestValidationError) ErrorName

func (e SayHelloRequestValidationError) ErrorName() string

ErrorName returns error name.

func (SayHelloRequestValidationError) Field

Field function returns field value.

func (SayHelloRequestValidationError) Key

Key function returns key value.

func (SayHelloRequestValidationError) Reason

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

Cause function returns cause value.

func (SayHelloResponseValidationError) Error

Error satisfies the builtin error interface

func (SayHelloResponseValidationError) ErrorName

ErrorName returns error name.

func (SayHelloResponseValidationError) Field

Field function returns field value.

func (SayHelloResponseValidationError) Key

Key function returns key value.

func (SayHelloResponseValidationError) Reason

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

Cause function returns cause value.

func (StatusRequestValidationError) Error

Error satisfies the builtin error interface

func (StatusRequestValidationError) ErrorName

func (e StatusRequestValidationError) ErrorName() string

ErrorName returns error name.

func (StatusRequestValidationError) Field

Field function returns field value.

func (StatusRequestValidationError) Key

Key function returns key value.

func (StatusRequestValidationError) Reason

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

Cause function returns cause value.

func (StatusResponseValidationError) Error

Error satisfies the builtin error interface

func (StatusResponseValidationError) ErrorName

func (e StatusResponseValidationError) ErrorName() string

ErrorName returns error name.

func (StatusResponseValidationError) Field

Field function returns field value.

func (StatusResponseValidationError) Key

Key function returns key value.

func (StatusResponseValidationError) Reason

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.

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) Status

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.

Jump to

Keyboard shortcuts

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