rest

package
v1.2.87 Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2024 License: MIT Imports: 31 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Api added in v1.2.36

type Api interface {
	ConfigureRouter(router *mux.Router)
}

func NewPprofApi added in v1.2.36

func NewPprofApi() Api

type AuthenticationApi added in v1.2.36

type AuthenticationApi interface {
	ConfigureRouter(r *mux.Router)
}

func NewAuthenticationApi added in v1.2.36

func NewAuthenticationApi(service service.AuthenticationService) AuthenticationApi

type AuthenticationRequest added in v1.2.36

type AuthenticationRequest struct {
	Username string `json:"username"`
	Password string `json:"password"`
	Term     string `json:"term"`
}

type AuthenticationResponse added in v1.2.36

type AuthenticationResponse struct {
	Token Token `json:"token"`
}

type EventChannelApi added in v1.1.48

type EventChannelApi interface {
	ConfigureRouter(r *mux.Router)
}

func NewEventChannelApi added in v1.1.48

func NewEventChannelApi(container service.Container) EventChannelApi

type HealthApi added in v1.1.37

type HealthApi interface {
	ConfigureRouter(r *mux.Router)
}

func NewHealthApi added in v1.1.37

func NewHealthApi() HealthApi

type HealthResponse added in v1.1.37

type HealthResponse struct {
	Status string `json:"status"`
}

type LogApi added in v1.2.57

type LogApi interface {
	ConfigureRouter(r *mux.Router)
}

func NewLogApi added in v1.2.57

func NewLogApi(container service.Container) LogApi

type MetricsApi added in v1.1.37

type MetricsApi interface {
	ConfigureRouter(r *mux.Router)
}

func NewMetricsApi added in v1.1.37

func NewMetricsApi(service service.MetricsService) MetricsApi

type PropertyValueWrapper added in v1.1.37

type PropertyValueWrapper struct {
	Value *structpb.Value
}

func (*PropertyValueWrapper) MarshalJSON added in v1.1.37

func (pvw *PropertyValueWrapper) MarshalJSON() ([]byte, error)

func (*PropertyValueWrapper) UnmarshalJSON added in v1.1.37

func (pvw *PropertyValueWrapper) UnmarshalJSON(data []byte) error

type RecordApi added in v1.1.37

type RecordApi interface {
	ConfigureRouter(r *mux.Router)
}

func NewRecordApi added in v1.1.37

func NewRecordApi(container service.Container) RecordApi

type RecordList added in v1.1.37

type RecordList struct {
	Total   uint64           `json:"total"`
	Records []*RecordWrapper `json:"content"`
}

type RecordWrapper added in v1.1.37

type RecordWrapper struct {
	// contains filtered or unexported fields
}

func NewEmptyRecordWrapper added in v1.1.37

func NewEmptyRecordWrapper() *RecordWrapper

func NewRecordWrapper added in v1.1.37

func NewRecordWrapper(record *model.Record) *RecordWrapper

func (*RecordWrapper) MarshalJSON added in v1.1.37

func (rw *RecordWrapper) MarshalJSON() ([]byte, error)

func (*RecordWrapper) UnmarshalJSON added in v1.1.37

func (rw *RecordWrapper) UnmarshalJSON(data []byte) error

type RefreshTokenRequest added in v1.2.36

type RefreshTokenRequest struct {
	Token string `json:"token"`
	Term  string `json:"term"`
}

type RefreshTokenResponse added in v1.2.36

type RefreshTokenResponse struct {
	Token Token `json:"token"`
}

type ResourceApi added in v1.1.37

type ResourceApi interface {
	ConfigureRouter(r *mux.Router)
}

func NewResourceApi added in v1.1.37

func NewResourceApi(container service.Container) ResourceApi

type Router

type Router interface {
	ConfigureRouter(router *mux.Router)
}

type SearchRecordRequest added in v1.1.37

type SearchRecordRequest struct {
	Query             *resource_model.BooleanExpression `json:"query,omitempty"`
	Limit             uint32                            `json:"limit,omitempty"`
	Offset            uint64                            `json:"offset,omitempty"`
	UseHistory        bool                              `json:"useHistory,omitempty"`
	ResolveReferences []string                          `json:"resolveReferences,omitempty"`
	Annotations       map[string]string                 `json:"annotations,omitempty"`
}

type Server

type Server interface {
	Init()
	ServeH2C(lis net.Listener)
	ServeHttp(lis net.Listener)
	ServeHttp2Tls(tls net.Listener)
}

func NewServer

func NewServer(container service.Container, config *model.AppConfig) Server

type ServiceCaller added in v1.1.37

type ServiceCaller struct {
	// contains filtered or unexported fields
}

func ServiceResponder added in v1.1.37

func ServiceResponder() ServiceCaller

func (ServiceCaller) Respond added in v1.1.37

func (s ServiceCaller) Respond(result interface{}, serviceError errors.ServiceError)

func (ServiceCaller) Writer added in v1.1.37

type Token added in v1.2.36

type Token struct {
	Term       string `json:"term"`
	Content    string `json:"content"`
	Expiration time.Time
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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