Documentation

Index

Constants

View Source
const ExitCodeCommandFailure = 123

    ExitCodeCommandFailure indicates that a given command failed due to internal errors or invalid input parameters.

    Variables

    This section is empty.

    Functions

    func GenInvID

    func GenInvID(ctx context.Context) (string, error)

      GenInvID generates an invocation ID, made of the username, the current timestamp in a human-friendly format, and a random suffix.

      This can be used to generate a random invocation ID, but the creator and creation time can be easily found.

      func Main

      func Main(p Params, args []string) int

        Main is the main function of the rdb application.

        Types

        type Params

        type Params struct {
        	DefaultResultDBHost string
        	Auth                auth.Options
        }

          Params is the parameters for the bb application.