service

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2024 License: BSD-3-Clause Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Bouncer added in v0.5.0

type Bouncer struct {
	Cursor
}

func (*Bouncer) Check added in v0.5.0

func (b *Bouncer) Check(ctx context.Context, endpoint, dialed string) model.BouncerResponse

type Contact added in v0.7.0

type Contact struct {
	Cursor
}

func (*Contact) Paginate added in v0.7.0

func (c *Contact) Paginate(ctx context.Context, filter model.ContactPageFilter, page, size int) (model.ContactPage, error)

type Cursor

type Cursor interface {
	Begin(ctx context.Context) (pgx.Tx, error)
	sqlc.DBTX
}

type EndpointService

type EndpointService struct {
	Cursor
}

func (*EndpointService) Create

func (e *EndpointService) Create(ctx context.Context, payload model.NewEndpoint) (model.Endpoint, error)

func (*EndpointService) Delete

func (e *EndpointService) Delete(ctx context.Context, sid int32) error

func (*EndpointService) Paginate

func (e *EndpointService) Paginate(ctx context.Context, page, size int) (model.EndpointPage, error)

func (*EndpointService) Read

func (e *EndpointService) Read(ctx context.Context, sid int32) (model.Endpoint, error)

func (*EndpointService) Update

func (e *EndpointService) Update(ctx context.Context, sid int32, payload model.PatchedEndpoint) (model.Endpoint, error)

Jump to

Keyboard shortcuts

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