endpoint

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2022 License: MPL-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MakeDeleteDeviceEndpoint

func MakeDeleteDeviceEndpoint(s service.Service) endpoint.Endpoint

func MakeDeleteRevokeEndpoint

func MakeDeleteRevokeEndpoint(s service.Service) endpoint.Endpoint

func MakeGetDeviceByIdEndpoint

func MakeGetDeviceByIdEndpoint(s service.Service) endpoint.Endpoint

func MakeGetDeviceCertEndpoint

func MakeGetDeviceCertEndpoint(s service.Service) endpoint.Endpoint

func MakeGetDeviceCertHistoryEndpoint

func MakeGetDeviceCertHistoryEndpoint(s service.Service) endpoint.Endpoint

func MakeGetDeviceLogsEndpoint

func MakeGetDeviceLogsEndpoint(s service.Service) endpoint.Endpoint

func MakeGetDevicesByDMSEndpoint

func MakeGetDevicesByDMSEndpoint(s service.Service) endpoint.Endpoint

func MakeGetDevicesEndpoint

func MakeGetDevicesEndpoint(s service.Service) endpoint.Endpoint

func MakeGetDmsCertHistoryThirtyDaysEndpoint

func MakeGetDmsCertHistoryThirtyDaysEndpoint(s service.Service) endpoint.Endpoint

func MakeGetDmsLastIssueCertEndpoint

func MakeGetDmsLastIssueCertEndpoint(s service.Service) endpoint.Endpoint

func MakeHealthEndpoint

func MakeHealthEndpoint(s service.Service) endpoint.Endpoint

func MakePostDeviceEndpoint

func MakePostDeviceEndpoint(s service.Service) endpoint.Endpoint

func MakeStatsEndpoint

func MakeStatsEndpoint(s service.Service) endpoint.Endpoint

func MakeUpdateDeviceByIdEndpoint

func MakeUpdateDeviceByIdEndpoint(s service.Service) endpoint.Endpoint

func ValidatePostDeviceRequest

func ValidatePostDeviceRequest(request dto.CreateDeviceRequest) error

func ValidateUpdateDeviceById

func ValidateUpdateDeviceById(request dto.UpdateDevicesByIdRequest) error

Types

type DeleteDeviceRequest

type DeleteDeviceRequest struct {
	Id string
}

type DeleteRevokeRequest

type DeleteRevokeRequest struct {
	Id string
}

type Endpoints

type Endpoints struct {
	HealthEndpoint              endpoint.Endpoint
	StatsEndpoint               endpoint.Endpoint
	PostDeviceEndpoint          endpoint.Endpoint
	GetDevices                  endpoint.Endpoint
	GetDeviceById               endpoint.Endpoint
	UpdateDeviceById            endpoint.Endpoint
	GetDevicesByDMS             endpoint.Endpoint
	DeleteDevice                endpoint.Endpoint
	DeleteRevoke                endpoint.Endpoint
	GetDeviceLogs               endpoint.Endpoint
	GetDeviceCert               endpoint.Endpoint
	GetDeviceCertHistory        endpoint.Endpoint
	GetDmsCertHistoryThirtyDays endpoint.Endpoint
	GetDmsLastIssueCert         endpoint.Endpoint
}

func MakeServerEndpoints

func MakeServerEndpoints(s service.Service, otTracer stdopentracing.Tracer) Endpoints

type GetDeviceCertHistoryRequest

type GetDeviceCertHistoryRequest struct {
	Id string
}

type GetDeviceCertRequest

type GetDeviceCertRequest struct {
	Id string
}

type GetDeviceLogsRequest

type GetDeviceLogsRequest struct {
	Id              string
	QueryParameters filters.QueryParameters
}

type GetDevicesByDMSRequest

type GetDevicesByDMSRequest struct {
	Id              string
	QueryParameters filters.QueryParameters
}

type GetDevicesByIdRequest

type GetDevicesByIdRequest struct {
	Id string
}

type HealthRequest

type HealthRequest struct{}

type HealthResponse

type HealthResponse struct {
	Healthy bool  `json:"healthy,omitempty"`
	Err     error `json:"err,omitempty"`
}

type PostDeviceResponse

type PostDeviceResponse struct {
	Device dto.Device `json:"device,omitempty"`
	Err    error      `json:"err,omitempty"`
}

type PostIssueCertResponse

type PostIssueCertResponse struct {
	Crt string `json:"crt,omitempty"`
	Err error  `json:"err,omitempty"`
}

type PostIssueCertUsingDefaultResponse

type PostIssueCertUsingDefaultResponse struct {
	Crt     string `json:"crt,omitempty"`
	PrivKey string `json:"priv_key,omitempty"`
	Err     error  `json:"err,omitempty"`
}

type StatsRequest

type StatsRequest struct{}

type StatsResponse

type StatsResponse struct {
	Stats    dto.Stats `json:"stats"`
	ScanDate time.Time `json:"scan_date"`
}

Jump to

Keyboard shortcuts

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