sourceparam

package
v0.0.0-...-a019193 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2025 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CreateRequest

type CreateRequest struct {
	UserID      string `json:"-"`
	ProjectID   string `json:"project_id"`
	Name        string `json:"name"  example:"test name"`
	Description string `json:"description"  example:"test description"`
}

type CreateResponse

type CreateResponse struct {
	Source entity.Source `json:"source"`
}

type DeleteRequest

type DeleteRequest struct {
	UserID   string `json:"-"`
	SourceID string `json:"-" param:"sourceID"`
}

type DeleteResponse

type DeleteResponse struct {
	Message string `json:"message"`
}

type DisableRequest

type DisableRequest struct {
	UserID   string `json:"-"`
	SourceID string `json:"-" param:"SourceID"`
}

type DisableResponse

type DisableResponse struct {
	Message string `json:"message"`
}

type EnableRequest

type EnableRequest struct {
	UserID   string `json:"-"`
	SourceID string `json:"-" param:"SourceID"`
}

type EnableResponse

type EnableResponse struct {
	Message string `json:"message"`
}

type ListRequest

type ListRequest struct {
	UserID      string
	LastTokenID int64 `query:"last_token_id"`
	PerPage     int   `query:"per_page"`
}

type ListResponse

type ListResponse struct {
	Sources     []entity.Source `json:"sources"`
	LastTokenID int64           `json:"last_token"`
	PerPage     int             `json:"per_page"`
	HasMore     bool            `json:"has_more"`
}

type RotateWriteKeyRequest

type RotateWriteKeyRequest struct {
	UserID   string `json:"-"`
	SourceID string `json:"-" param:"SourceID"`
}

type RotateWriteKeyResponse

type RotateWriteKeyResponse struct {
	Source entity.Source `json:"source"`
}

type ShowRequest

type ShowRequest struct {
	UserID   string `json:"-"`
	SourceID string `json:"-" param:"SourceID"`
}

type ShowResponse

type ShowResponse struct {
	Source entity.Source `json:"source"`
}

type UpdateRequest

type UpdateRequest struct {
	UserID      string `json:"-"`
	SourceID    string `json:"-" param:"SourceID"`
	Name        string `json:"name" example:"updated name"`
	Description string `json:"description"  example:"updated description"`
}

type UpdateResponse

type UpdateResponse struct {
	Source entity.Source `json:"source"`
}

Jump to

Keyboard shortcuts

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