dsl

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Copyright (C) BABEC. All rights reserved. Copyright (C) THL A29 Limited, a Tencent company. All rights reserved.

SPDX-License-Identifier: Apache-2.0

Copyright (C) BABEC. All rights reserved. Copyright (C) THL A29 Limited, a Tencent company. All rights reserved.

SPDX-License-Identifier: Apache-2.0

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrFormat      = errors.New("invalid protocol format")
	ErrNotSupport  = errors.New("unsupported protocol")
	ErrInvaildPath = errors.New("invaild path")
)

Functions

func IsSupportedForSchema

func IsSupportedForSchema(schema string) bool

func IsSupportedForType

func IsSupportedForType(t ProtocolType) bool

Types

type DSL

type DSL struct {
	Schema string
	Path   string
}

DSL data store location

func Parse

func Parse(p string) (*DSL, error)

Parse parse string p to a DSL

type Protocol

type Protocol struct {
	Type ProtocolType
	Name string
}

type ProtocolType

type ProtocolType int
const (
	PT_UNKNOWN ProtocolType = iota
	PT_FILE
)

func ProtocolTypeBySchema

func ProtocolTypeBySchema(schema string) ProtocolType

Jump to

Keyboard shortcuts

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