handler

package
v1.6.0 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2023 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CustomerModel

type CustomerModel struct {
	ID      string
	Email   string
	Status  string
	Created int64
	Updated int64
	Name    string
	Meta    map[string]string
}

type Customers

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

func New

func New(service *service.Service) *Customers

func (*Customers) Ban

func (c *Customers) Ban(ctx context.Context, request *customer.BanRequest, response *customer.BanResponse) error

func (*Customers) Create

func (c *Customers) Create(ctx context.Context, request *customer.CreateRequest, response *customer.CreateResponse) error

func (*Customers) Delete

func (c *Customers) Delete(ctx context.Context, request *customer.DeleteRequest, response *customer.DeleteResponse) error

func (*Customers) List

func (c *Customers) List(ctx context.Context, request *customer.ListRequest, response *customer.ListResponse) error

List is a temporary endpoint which will very quickly become unusable due to the way it lists entries

func (*Customers) Login

func (c *Customers) Login(ctx context.Context, request *customer.LoginRequest, response *customer.LoginResponse) error

func (*Customers) Logout

func (c *Customers) Logout(ctx context.Context, request *customer.LogoutRequest, response *customer.LogoutResponse) error

func (*Customers) MarkVerified

func (c *Customers) MarkVerified(ctx context.Context, request *customer.MarkVerifiedRequest, response *customer.MarkVerifiedResponse) error

func (*Customers) Read

func (c *Customers) Read(ctx context.Context, request *customer.ReadRequest, response *customer.ReadResponse) error

func (*Customers) Unban

func (c *Customers) Unban(ctx context.Context, request *customer.UnbanRequest, response *customer.UnbanResponse) error

func (*Customers) Update

func (c *Customers) Update(ctx context.Context, request *customer.UpdateRequest, response *customer.UpdateResponse) error

func (*Customers) UpdateName

func (c *Customers) UpdateName(ctx context.Context, request *customer.UpdateNameRequest, response *customer.UpdateNameResponse) error

Jump to

Keyboard shortcuts

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