v1

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const OperationShortLinkRedirectServiceRedirect = "/slink.service.v1.ShortLinkRedirectService/Redirect"

Variables

This section is empty.

Functions

func RegisterShortLinkRedirectServiceHTTPServer

func RegisterShortLinkRedirectServiceHTTPServer(s *http.Server, srv ShortLinkRedirectServiceHTTPServer)

func ShortLinkRedirectServiceRedirectHTTPHandler

func ShortLinkRedirectServiceRedirectHTTPHandler(srv ShortLinkRedirectServiceHTTPServer) func(ctx http.Context) error

Types

type RedirectRequest

type RedirectRequest struct {
	Key string `json:"key,omitempty"`
}

type ShortLinkRedirectServiceHTTPServer

type ShortLinkRedirectServiceHTTPServer interface {
	Redirect(context.Context, *RedirectRequest) (http.Redirector, error)
}

type ShortLinkRedirectServiceServer

type ShortLinkRedirectServiceServer interface {
	Redirect(context.Context, *RedirectRequest) (http.Redirector, error)
	// contains filtered or unexported methods
}

type UnimplementedShortLinkRedirectServiceServer

type UnimplementedShortLinkRedirectServiceServer struct{}

UnimplementedShortLinkRedirectServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedShortLinkRedirectServiceServer) Redirect

type UnsafeShortLinkRedirectServiceServer

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

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

Jump to

Keyboard shortcuts

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