Documentation ¶
Index ¶
- Constants
- func RegisterShortLinkRedirectServiceHTTPServer(s *http.Server, srv ShortLinkRedirectServiceHTTPServer)
- func ShortLinkRedirectServiceRedirectHTTPHandler(srv ShortLinkRedirectServiceHTTPServer) func(ctx http.Context) error
- type RedirectRequest
- type ShortLinkRedirectServiceHTTPServer
- type ShortLinkRedirectServiceServer
- type UnimplementedShortLinkRedirectServiceServer
- type UnsafeShortLinkRedirectServiceServer
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 ¶
func (UnimplementedShortLinkRedirectServiceServer) Redirect(context.Context, *RedirectRequest) (http.Redirector, error)
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.
Click to show internal directories.
Click to hide internal directories.