Versions in this module Expand all Collapse all v0 v0.1.0 Mar 10, 2024 Changes in this version + const CodeInternalServerError + const CodeInvalidRequest + const CodeMethodNotAllowed + const CodeRequestTimeout + const CodeSuccess + const STORE_FILE + const STORE_GOB + const STORE_MAP + const STORE_REDIS + var DeleteToken = "/delete" + var Detokenize = "/detokenize" + var Err404 = "404 not found" + var ErrInvalidRequestParameter = errors.New("invalid request parameter") + var ErrMethodNotAllowed = "method not allowed" + var ErrParameterizedVariableNotPassedF = "parameterized variable %s empty" + var GetTokens = "/all" + var GetTokensByID = "/id" + var Introduction = "/new" + var KeyDelimiter = tokenize.KeyDelimiter + var ParamVarID = "id" + var PatchToken = "/patch" + var Tokenize = "/tokenize" + func DeleteTokenByIDHandler(srv *Service) func(w http.ResponseWriter, r *http.Request) + func DeleteTokenByIDParamHandler(srv *Service) func(w http.ResponseWriter, r *http.Request) + func DetokenizeHandlerFunc(srv *Service) func(w http.ResponseWriter, r *http.Request) + func GetTokenByIDParamHandler(srv *Service) func(w http.ResponseWriter, r *http.Request) + func GetTokensByIDHandler(srv *Service) func(w http.ResponseWriter, r *http.Request) + func GetTokensHandler(srv *Service) func(w http.ResponseWriter, r *http.Request) + func PatchTokenByIDParamHandler(srv *Service) func(w http.ResponseWriter, r *http.Request) + func TokenizeHandlerFunc(srv *Service) func(w http.ResponseWriter, r *http.Request) + func VaultHandlerFunc(srv *Service) func(w http.ResponseWriter, r *http.Request) + type Options func(*Service) + func WithFileLoc(loc string) Options + func WithGobLoc(loc string) Options + func WithGobTrunc() Options + func WithRedisConnString(connStr string) Options + func WithStoreStr(storeStr string) Options + type Service struct + func New(ctx context.Context, log *vlog.Logger, opts ...Options) (*Service, error) + func (s *Service) LoadHandlers(ctx context.Context) + func (s *Service) Port() string + func (s *Service) Run(ctx context.Context) error + func (s *Service) SetDefaults() + type StartConfig struct + type VaultHandler map[string]func(w http.ResponseWriter, r *http.Request) + func NewVaultHandler(ctx context.Context, srv *Service) *VaultHandler