cli

package
v0.0.0-...-f29e771 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2024 License: BSD-2-Clause Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const TokenKey = "token"

Variables

This section is empty.

Functions

func CreateAccessToken

func CreateAccessToken(cltx *cli.Context) error

func FixedLenRandomInt

func FixedLenRandomInt(length int) string

FixedLenRandomInt generates a random string of fixed length using digits 1-9. It takes an integer length as input and returns the generated string.

func FixedLenRandomString

func FixedLenRandomString(length int) string

FixedLenRandomString generates a random string of fixed length.

func ImportUser

func ImportUser(cltx *cli.Context) error

ImportUser is a function that imports user data from a CSV file and creates users in a logto system. It takes a cli.Context parameter and returns an error if an error occurs during execution.

func RandomInt

func RandomInt(num int) (int, error)

Generate a random number using crypto/rand.

Types

This section is empty.

Jump to

Keyboard shortcuts

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