dogma

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2022 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AttributeByID added in v0.0.2

func AttributeByID(ctx context.Context, id *int) (*model.DogmaAttributeDetail, error)

AttributeByID takes a context for tracing and an ID to query the Dogma Attribute by.

func EffectByID added in v0.0.2

func EffectByID(ctx context.Context, id *int) (*model.DogmaEffectDetail, error)

EffectByID takes a context for tracing and an ID to query the Dogma Effect by.

func SetupDogmaRest

func SetupDogmaRest()

SetupDogmaRest configures dependencies for the Dogma rest package

Types

type RestHelper

type RestHelper interface {
	MakeCachingRESTCall(ctx context.Context, baseURL string, verb string, body bytes.Buffer, additionalQueryParams []configuration.KeyValue, redisQueryKey string) ([]byte, http.Header, error)
}

RestHelper is an interface used in mocking for unit tests.

Jump to

Keyboard shortcuts

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