Documentation ¶
Overview ¶
Package auditlogs provides primitives to interact with the openapi HTTP API.
Code generated by github.com/deepmap/oapi-codegen version v1.8.3 DO NOT EDIT.
Index ¶
- Constants
- func GetSwagger() (swagger *openapi3.T, err error)
- 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
- func PathToRawSpec(pathToFile string) map[string]func() ([]byte, error)
- type ChiServerOptions
- type ListVironAuditlogsParams
- type MiddlewareFunc
- type ServerInterface
- type ServerInterfaceWrapper
- type VironAuditLog
- type VironAuditLogList
- type VironAuditLogListWithPager
- type VironRequestMethodQueryParam
- type VironRequestUriQueryParam
- type VironSourceIpQueryParam
- type VironStatusCodeQueryParam
- type VironUserIdQueryParam
Constants ¶
const (
JwtScopes = "jwt.Scopes"
)
Variables ¶
This section is empty.
Functions ¶
func GetSwagger ¶
GetSwagger returns the Swagger specification corresponding to the generated code in this file. The external references of Swagger specification are resolved. The logic of resolving external references is tightly connected to "import-mapping" feature. Externally referenced files must be embedded in the corresponding golang packages. Urls can be supported but this task was out of the scope.
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 HandlerFromMuxWithBaseURL ¶
func HandlerFromMuxWithBaseURL(si ServerInterface, r chi.Router, baseURL string) http.Handler
func HandlerWithOptions ¶
func HandlerWithOptions(si ServerInterface, options ChiServerOptions) http.Handler
HandlerWithOptions creates http.Handler with additional options
Types ¶
type ChiServerOptions ¶
type ChiServerOptions struct { BaseURL string BaseRouter chi.Router Middlewares []MiddlewareFunc }
type ListVironAuditlogsParams ¶
type ListVironAuditlogsParams struct { UserId *VironUserIdQueryParam `json:"userId,omitempty"` RequestUri *VironRequestUriQueryParam `json:"requestUri,omitempty"` RequestMethod *VironRequestMethodQueryParam `json:"requestMethod,omitempty"` SourceIp *VironSourceIpQueryParam `json:"sourceIp,omitempty"` StatusCode *VironStatusCodeQueryParam `json:"statusCode,omitempty"` // Size of list Size *externalRef0.VironPagerSizeQueryParam `json:"size,omitempty"` // Page number of list Page *externalRef0.VironPagerPageQueryParam `json:"page,omitempty"` // Sort specification of list Sort *externalRef0.VironSortQueryParam `json:"sort,omitempty"` }
ListVironAuditlogsParams defines parameters for ListVironAuditlogs.
type MiddlewareFunc ¶
type MiddlewareFunc func(http.HandlerFunc) http.HandlerFunc
type ServerInterface ¶
type ServerInterface interface { // list audit logs // (GET /viron/auditlogs) ListVironAuditlogs(w http.ResponseWriter, r *http.Request, params ListVironAuditlogsParams) }
ServerInterface represents all server handlers.
func New ¶
func New() ServerInterface
type ServerInterfaceWrapper ¶
type ServerInterfaceWrapper struct { Handler ServerInterface HandlerMiddlewares []MiddlewareFunc }
ServerInterfaceWrapper converts contexts to parameters.
func (*ServerInterfaceWrapper) ListVironAuditlogs ¶
func (siw *ServerInterfaceWrapper) ListVironAuditlogs(w http.ResponseWriter, r *http.Request)
ListVironAuditlogs operation middleware
type VironAuditLog ¶
type VironAuditLog struct { // 日時 CreatedAt *time.Time `json:"createdAt,omitempty"` // リクエストボディ RequestBody *string `json:"requestBody,omitempty"` // リクエストメソッド RequestMethod *string `json:"requestMethod,omitempty"` // リクエストURI RequestUri *string `json:"requestUri,omitempty"` // ソースIP SourceIp *string `json:"sourceIp,omitempty"` // ステータスコード StatusCode *int `json:"statusCode,omitempty"` // ユーザーID UserId *string `json:"userId,omitempty"` }
VironAuditLog defines model for VironAuditLog.
type VironAuditLogList ¶
type VironAuditLogList []VironAuditLog
VironAuditLogList defines model for VironAuditLogList.
type VironAuditLogListWithPager ¶
type VironAuditLogListWithPager struct { // Embedded struct due to allOf(./components.yaml#/components/schemas/VironPager) externalRef0.VironPager `yaml:",inline"` // Embedded fields due to inline allOf schema List VironAuditLogList `json:"list"` }
VironAuditLogListWithPager defines model for VironAuditLogListWithPager.
type VironRequestMethodQueryParam ¶
type VironRequestMethodQueryParam string
VironRequestMethodQueryParam defines model for VironRequestMethodQueryParam.
type VironRequestUriQueryParam ¶
type VironRequestUriQueryParam string
VironRequestUriQueryParam defines model for VironRequestUriQueryParam.
type VironSourceIpQueryParam ¶
type VironSourceIpQueryParam string
VironSourceIpQueryParam defines model for VironSourceIpQueryParam.
type VironStatusCodeQueryParam ¶
type VironStatusCodeQueryParam int32
VironStatusCodeQueryParam defines model for VironStatusCodeQueryParam.
type VironUserIdQueryParam ¶
type VironUserIdQueryParam string
VironUserIdQueryParam defines model for VironUserIdQueryParam.