usecases

package
v0.0.0-...-27a0740 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2023 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateAccessToken

func CreateAccessToken(ttl time.Duration, content interface{}, k []byte, iis string) (token string, err error)

Types

type CreateUserUseCase

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

func NewCreateUserUseCase

func NewCreateUserUseCase(key string, url string, namespace string, tlUrl, tlCHash, pinataKey, ensRootOwner, ensPrivateKey, mainENS, rpcURL, resolver string) CreateUserUseCase

func (*CreateUserUseCase) Execute

func (c *CreateUserUseCase) Execute(nickName string, duration time.Duration, avatar string) error

func (*CreateUserUseCase) GetAddress

func (c *CreateUserUseCase) GetAddress() string

func (*CreateUserUseCase) GetPrivateKey

func (c *CreateUserUseCase) GetPrivateKey() string

type GetUserUseCase

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

func NewGetUserUseCase

func NewGetUserUseCase(key string, url string, namespace string, tlUrl, tlCHash, pinataKey, ensRootOwner, ensPrivateKey, mainENS, rpcURL, resolver string) GetUserUseCase

func (*GetUserUseCase) Execute

func (c *GetUserUseCase) Execute(key, address string) (token string, err error)

Jump to

Keyboard shortcuts

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