model

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Overview

Copyright © 2024 Teruaki Sato <andrea.pirlo.0529@gmail.com>

Copyright © 2024 Teruaki Sato <andrea.pirlo.0529@gmail.com>

Copyright © 2024 Teruaki Sato <andrea.pirlo.0529@gmail.com>

Copyright © 2024 Teruaki Sato <andrea.pirlo.0529@gmail.com>

Copyright © 2024 Teruaki Sato <andrea.pirlo.0529@gmail.com>

Index

Constants

View Source
const MOCK = "🟡 mock"
View Source
const PROD = "🟢 production"
View Source
const TRACE_ID = "SYS_SETUP"

Variables

This section is empty.

Functions

This section is empty.

Types

type Api

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

type ApiKey added in v0.3.0

type ApiKey struct {
	Title       string `yaml:"title"`
	OperationId string `yaml:"operationId"`
	KongId      string `yaml:"kongId"`
	ResourceId  string `yaml:"resourceId"`
	Implemented bool   `yaml:"implemented"`
}

type ApiList added in v0.3.0

type ApiList struct {
	WorkSpaceId string    `yaml:"workSpaceId"`
	InitIsMock  bool      `yaml:"initIsMock"`
	Services    []Service `yaml:"services"`
}

TITLE: ApiList構造体

func New

func New(path string) (*ApiList, error)

FUNCTION: Apisの作成

func (*ApiList) Fixture added in v0.4.0

func (apiList *ApiList) Fixture(dir string) error

FUNCTION: Fixtureの書き込み

func (*ApiList) ListMd added in v0.3.0

func (apiList *ApiList) ListMd(path string) error

FUNCTION: MDファイルの書き込み

func (*ApiList) ListTsv added in v0.3.0

func (apiList *ApiList) ListTsv(path string) error

FUNCTION: Tsvファイルの書き込み

func (*ApiList) Sql4Acl added in v0.3.0

func (apiList *ApiList) Sql4Acl(path string) error

FUNCTION: Acl用SQLの書き込み

func (*ApiList) Sql4Kong added in v0.3.0

func (apiList *ApiList) Sql4Kong(path string) error

FUNCTION: Kong用SQLの書き込み

func (*ApiList) Write added in v0.3.0

func (apiList *ApiList) Write(path string) error

FUNCTION: yamlファイルの書き込み

type Openapi

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

TITLE: Openapi構造体

func NewOpenapi added in v0.3.0

func NewOpenapi(service Service) (*Openapi, error)

FUNCTION: Apiパース

type Request

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

type Response

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

type Server

type Server struct {
	Host      string `yaml:"host"`
	Port      int    `yaml:"port"`
	ServiceId string `yaml:"serviceId"`
}

type Service added in v0.3.0

type Service struct {
	ServiceName string `yaml:"serviceName"`
	OpenapiPath string `yaml:"openapiPath"`

	ProdServer Server   `yaml:"prodServer"`
	MockServer Server   `yaml:"mockServer"`
	Apis       []ApiKey `yaml:"apis"`
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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