httpstate

package
v0.0.0-...-089051e Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2025 License: MIT Imports: 17 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HttpStateProvider

type HttpStateProvider struct {
	Config  HttpStateProviderConfig
	Data    map[string]interface{}
	Context *contexts.ManagerContext
}

func (*HttpStateProvider) Clone

func (*HttpStateProvider) Delete

func (s *HttpStateProvider) Delete(ctx context.Context, request states.DeleteRequest) error

func (*HttpStateProvider) Get

func (*HttpStateProvider) ID

func (s *HttpStateProvider) ID() string

func (*HttpStateProvider) Init

func (*HttpStateProvider) InitWithMap

func (i *HttpStateProvider) InitWithMap(properties map[string]string) error

func (*HttpStateProvider) List

func (*HttpStateProvider) SetContext

func (s *HttpStateProvider) SetContext(ctx *contexts.ManagerContext)

func (*HttpStateProvider) Upsert

type HttpStateProviderConfig

type HttpStateProviderConfig struct {
	Name              string `json:"name"`
	Url               string `json:"url"`
	PostAsArray       bool   `json:"postAsArray,omitempty"`
	PostNameInPath    bool   `json:"postNameInPath,omitempty"`
	PostBodyKeyName   string `json:"postBodyKeyName,omitempty"`
	PostBodyValueName string `json:"postBodyValueName,omitempty"`
	NotFoundAs204     bool   `json:"notFoundAs204,omitempty"`
}

func HttpStateProviderConfigFromMap

func HttpStateProviderConfigFromMap(properties map[string]string) (HttpStateProviderConfig, error)

Jump to

Keyboard shortcuts

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