httplogger

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2025 License: Apache-2.0 Imports: 30 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Key = apiVersion + "/" + kind
)

Variables

View Source
var Resource api.Resource = &API{
	BaseResource: &api.BaseResource{
		DefaultProto: &v1.HTTPLogger{
			APIVersion: apiVersion,
			Kind:       kind,
			Metadata: &kernel.Metadata{
				Namespace: "default",
				Name:      "default",
			},
			Spec: &v1.HTTPLoggerSpec{
				Journal:    false,
				Timezone:   "Local",
				TimeFormat: "2006-01-02 15:04:05.000",
				Request: &v1.LoggingSpec{
					MaxContentLength: 1 << 12,
				},
				Response: &v1.LoggingSpec{
					MaxContentLength: 1 << 12,
				},
			},
		},
	},
}

Functions

This section is empty.

Types

type API

type API struct {
	*api.BaseResource
}

func (*API) Create

func (*API) Create(a api.API[*api.Request, *api.Response], msg protoreflect.ProtoMessage) (any, error)

func (*API) Mutate

Jump to

Keyboard shortcuts

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