Documentation
¶
Overview ¶
Package ports provides primitives to interact with the openapi HTTP API.
Code generated by github.com/deepmap/oapi-codegen version (devel) DO NOT EDIT.
Package ports provides primitives to interact with the openapi HTTP API.
Code generated by github.com/deepmap/oapi-codegen version (devel) DO NOT EDIT.
Index ¶
- Constants
- Variables
- func Handler(si ServerInterface) http.Handler
- func HandlerFromMux(si ServerInterface, r chi.Router) http.Handler
- func HandlerFromMuxWithBaseURL(si ServerInterface, r chi.Router, baseURL string) http.Handler
- func HandlerWithOptions(si ServerInterface, options ChiServerOptions) http.Handler
- type ChargingInformation
- type ChiServerOptions
- type Error
- type MiddlewareFunc
- type N3TunnelInfo
- type N4TunnelInfo
- type PostSmContextsJSONBody
- type PostSmContextsJSONRequestBody
- type ReleaseSmContextJSONBody
- type ReleaseSmContextJSONRequestBody
- type RetrieveSmContextJSONBody
- type RetrieveSmContextJSONRequestBody
- type ServerInterface
- type ServerInterfaceWrapper
- func (siw *ServerInterfaceWrapper) PostSmContexts(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) ReleaseSmContext(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) RetrieveSmContext(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) UpdateSmContext(w http.ResponseWriter, r *http.Request)
- type SmContext
- type SmContextCreateData
- type SmContextCreatedData
- type SmContextReleaseData
- type SmContextReleasedData
- type SmContextRetrieveData
- type SmContextRetrievedData
- type SmContextStatusNotification
- type SmContextUpdateData
- type SmContextUpdatedData
- type UpdateSmContextJSONBody
- type UpdateSmContextJSONRequestBody
Constants ¶
const (
OAuth2ClientCredentialsScopes = "oAuth2ClientCredentials.Scopes"
)
Variables ¶
var SmfDms *dms.Dms
Functions ¶
func Handler ¶
func Handler(si ServerInterface) http.Handler
Handler creates http.Handler with routing matching OpenAPI spec.
func HandlerFromMux ¶
func HandlerFromMux(si ServerInterface, r chi.Router) http.Handler
HandlerFromMux creates http.Handler with routing matching OpenAPI spec based on the provided mux.
func HandlerWithOptions ¶
func HandlerWithOptions(si ServerInterface, options ChiServerOptions) http.Handler
HandlerWithOptions creates http.Handler with additional options
Types ¶
type ChargingInformation ¶
type ChargingInformation struct {
DownlinkVolume int `json:"downlinkVolume"`
EndTimestamp string `json:"endTimestamp"`
StartTimestamp string `json:"startTimestamp"`
UplinkVolume int `json:"uplinkVolume"`
}
Charging Information
type ChiServerOptions ¶
type ChiServerOptions struct {
BaseURL string
BaseRouter chi.Router
Middlewares []MiddlewareFunc
}
type MiddlewareFunc ¶
type MiddlewareFunc func(http.HandlerFunc) http.HandlerFunc
type N3TunnelInfo ¶
type N3TunnelInfo struct {
NgRanIp string `json:"ngRanIp"`
NgRanTeid int `json:"ngRanTeid"`
UpfIp string `json:"upfIp"`
UpfTeid int `json:"upfTeid"`
}
N3 Tunnel Information
type N4TunnelInfo ¶
type N4TunnelInfo struct {
SmfIp string `json:"smfIp"`
SmfPort int `json:"smfPort"`
SmfTeid int `json:"smfTeid"`
UpfIp string `json:"upfIp"`
UpfPort int `json:"upfPort"`
UpfTeid int `json:"upfTeid"`
}
N4 Tunnel Information
type PostSmContextsJSONBody ¶
type PostSmContextsJSONBody SmContextCreateData
PostSmContextsJSONBody defines parameters for PostSmContexts.
type PostSmContextsJSONRequestBody ¶
type PostSmContextsJSONRequestBody PostSmContextsJSONBody
PostSmContextsJSONRequestBody defines body for PostSmContexts for application/json ContentType.
type ReleaseSmContextJSONBody ¶
type ReleaseSmContextJSONBody SmContextReleaseData
ReleaseSmContextJSONBody defines parameters for ReleaseSmContext.
type ReleaseSmContextJSONRequestBody ¶
type ReleaseSmContextJSONRequestBody ReleaseSmContextJSONBody
ReleaseSmContextJSONRequestBody defines body for ReleaseSmContext for application/json ContentType.
type RetrieveSmContextJSONBody ¶
type RetrieveSmContextJSONBody SmContextRetrieveData
RetrieveSmContextJSONBody defines parameters for RetrieveSmContext.
type RetrieveSmContextJSONRequestBody ¶
type RetrieveSmContextJSONRequestBody RetrieveSmContextJSONBody
RetrieveSmContextJSONRequestBody defines body for RetrieveSmContext for application/json ContentType.
type ServerInterface ¶
type ServerInterface interface {
// Create SM Context
// (POST /sm-contexts)
PostSmContexts(w http.ResponseWriter, r *http.Request)
// Update SM Context
// (POST /sm-contexts/{smContextRef}/modify)
UpdateSmContext(w http.ResponseWriter, r *http.Request, smContextRef string)
// Release SM Context
// (POST /sm-contexts/{smContextRef}/release)
ReleaseSmContext(w http.ResponseWriter, r *http.Request, smContextRef string)
// Retrieve SM Context
// (POST /sm-contexts/{smContextRef}/retrieve)
RetrieveSmContext(w http.ResponseWriter, r *http.Request, smContextRef string)
}
ServerInterface represents all server handlers.
type ServerInterfaceWrapper ¶
type ServerInterfaceWrapper struct {
Handler ServerInterface
HandlerMiddlewares []MiddlewareFunc
}
ServerInterfaceWrapper converts contexts to parameters.
func (*ServerInterfaceWrapper) PostSmContexts ¶
func (siw *ServerInterfaceWrapper) PostSmContexts(w http.ResponseWriter, r *http.Request)
PostSmContexts operation middleware
func (*ServerInterfaceWrapper) ReleaseSmContext ¶
func (siw *ServerInterfaceWrapper) ReleaseSmContext(w http.ResponseWriter, r *http.Request)
ReleaseSmContext operation middleware
func (*ServerInterfaceWrapper) RetrieveSmContext ¶
func (siw *ServerInterfaceWrapper) RetrieveSmContext(w http.ResponseWriter, r *http.Request)
RetrieveSmContext operation middleware
func (*ServerInterfaceWrapper) UpdateSmContext ¶
func (siw *ServerInterfaceWrapper) UpdateSmContext(w http.ResponseWriter, r *http.Request)
UpdateSmContext operation middleware
type SmContext ¶
type SmContext struct {
ChargingId string `json:"chargingId"`
ChargingInfo []ChargingInformation `json:"chargingInfo"`
Dnn string `json:"dnn"`
// N3 Tunnel Information
N3TunnelInfo N3TunnelInfo `json:"n3TunnelInfo"`
// N4 Tunnel Information
N4TunnelInfo N4TunnelInfo `json:"n4TunnelInfo"`
PduSessionId int `json:"pduSessionId"`
PduSessionRef string `json:"pduSessionRef"`
PduSessionType string `json:"pduSessionType"`
SNssai string `json:"sNssai"`
SmfInstanceId string `json:"smfInstanceId"`
SmfServiceInstanceId string `json:"smfServiceInstanceId"`
SmfUri string `json:"smfUri"`
Supi string `json:"supi"`
UeIpv4Address string `json:"ueIpv4Address"`
}
Complete SM Context
type SmContextCreateData ¶
type SmContextCreateData struct {
AmfServiceInstanceId string `json:"amfServiceInstanceId"`
AmfUri string `json:"amfUri"`
Dnn string `json:"dnn"`
PduSessionId int `json:"pduSessionId"`
SNssai string `json:"sNssai"`
ServingNetwork string `json:"servingNetwork"`
SmContextStatusUri string `json:"smContextStatusUri"`
Supi string `json:"supi"`
}
Data within Create SM Context Request
type SmContextCreatedData ¶
type SmContextCreatedData struct {
N3Ip string `json:"n3Ip"`
N3Teid int `json:"n3Teid"`
PduSessionId int `json:"pduSessionId"`
SNssai string `json:"sNssai"`
SmfServiceInstanceId string `json:"smfServiceInstanceId"`
SmfUri string `json:"smfUri"`
UeIp string `json:"ueIp"`
UpCnxState string `json:"upCnxState"`
}
Data within Create SM Context Response
type SmContextReleaseData ¶
type SmContextReleaseData struct {
Cause int `json:"cause"`
}
Data within Release SM Context Request
type SmContextReleasedData ¶
type SmContextReleasedData struct {
ApnRateStatus string `json:"apnRateStatus"`
}
Data within Release SM Context Response
type SmContextRetrieveData ¶
type SmContextRetrieveData struct {
ServingNetwork string `json:"servingNetwork"`
SmContextType string `json:"smContextType"`
}
Data within Retrieve SM Context Request
type SmContextRetrievedData ¶
type SmContextRetrievedData struct {
// Complete SM Context
SmContext SmContext `json:"smContext"`
}
Data within Retrieve SM Context Response
type SmContextStatusNotification ¶
type SmContextStatusNotification struct {
ApnRateStatus string `json:"apnRateStatus"`
Cause int `json:"cause"`
ResouceStatus string `json:"resouceStatus"`
}
Data within Notify SM Context Status Request
type SmContextUpdateData ¶
type SmContextUpdateData struct {
Cause int `json:"cause"`
N3Ip string `json:"n3Ip"`
N3Teid int `json:"n3Teid"`
Release bool `json:"release"`
UpCnxState string `json:"upCnxState"`
}
Data within Update SM Context Request
type SmContextUpdatedData ¶
type SmContextUpdatedData struct {
Cause int `json:"cause"`
N3Ip string `json:"n3Ip"`
N3Teid int `json:"n3Teid"`
UpCnxState string `json:"upCnxState"`
}
Data within Update SM Context Response
type UpdateSmContextJSONBody ¶
type UpdateSmContextJSONBody SmContextUpdateData
UpdateSmContextJSONBody defines parameters for UpdateSmContext.
type UpdateSmContextJSONRequestBody ¶
type UpdateSmContextJSONRequestBody UpdateSmContextJSONBody
UpdateSmContextJSONRequestBody defines body for UpdateSmContext for application/json ContentType.