url

package
v0.0.0-...-9bbc724 Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type URLApiService

type URLApiService struct {
	DB     db.Querier
	DBConn db.DBTX
}

implements the URLApiServicer interface s *URLApiService server.URLApiServicer

func (*URLApiService) CreateUrl

func (s *URLApiService) CreateUrl(ctx context.Context, newURL server.Url, requestID string) (serverRes server.ImplResponse, err error)

func (*URLApiService) DeleteUrl

func (s *URLApiService) DeleteUrl(ctx context.Context, alias string, requestID string) (server.ImplResponse, error)

func (*URLApiService) GetUrl

func (s *URLApiService) GetUrl(ctx context.Context, alias string, requestID string) (server.ImplResponse, error)

func (*URLApiService) GetUrlData

func (s *URLApiService) GetUrlData(ctx context.Context, alias string, requestID string) (server.ImplResponse, error)

type URLMock

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

s *URLMock server.URLAPIServicer

func (*URLMock) CreateUrl

func (s *URLMock) CreateUrl(_ context.Context, _ server.Url, _ string) (server.ImplResponse, error)

func (*URLMock) DeleteUrl

func (s *URLMock) DeleteUrl(_ context.Context, _ string, _ string) (server.ImplResponse, error)

func (*URLMock) GetUrl

func (s *URLMock) GetUrl(_ context.Context, _ string, _ string) (server.ImplResponse, error)

func (*URLMock) GetUrlData

func (s *URLMock) GetUrlData(_ context.Context, _ string, _ string) (server.ImplResponse, error)

Jump to

Keyboard shortcuts

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