options

package
v0.0.0-...-7404c28 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package options NOTES

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DisableWriteOption

type DisableWriteOption struct {
	// IsDisabled defines if the write operations needs to be disabled
	IsDisabled bool
	// IsAll defines if all write operations needs to be disabled
	IsAll bool
	// BizIDMap defines the biz ids that needs to be disabled as map keys
	BizIDMap sync.Map
}

DisableWriteOption defines which biz's write operations needs to be disabled when authorized

type Option

type Option struct {
	Sys *cc.SysOption
	// DisableAuth defines whether iam authorization is disabled
	DisableAuth bool
}

Option defines the app's runtime flag options.

func InitOptions

func InitOptions() *Option

InitOptions init auth server's options from command flags.

Jump to

Keyboard shortcuts

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