service

package
v0.11.1 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2024 License: BSD-3-Clause Imports: 14 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 Cdr added in v0.11.0

type Cdr struct {
	Cursor Cursor
}

func (*Cdr) Paginate added in v0.11.0

func (c *Cdr) Paginate(ctx context.Context, page, size int) (model.CallRecordPage, error)

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)

type Location added in v0.11.0

type Location struct {
	Cursor Cursor `json:"cursor"`
}

func (*Location) Paginate added in v0.11.0

func (l *Location) Paginate(ctx context.Context, page, size int) (model.LocationPage, error)

Jump to

Keyboard shortcuts

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