1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-12-30 05:56:54 -05:00

use new errorgen

This commit is contained in:
Darien Raymond 2018-09-30 23:08:41 +02:00
parent 56ce5d5f84
commit 091fa6ad23
No known key found for this signature in database
GPG Key ID: 7251FFA14BB18169
46 changed files with 47 additions and 46 deletions

View File

@ -1,6 +1,6 @@
package commander
//go:generate go run $GOPATH/src/v2ray.com/core/common/errors/errorgen/main.go -pkg commander -path App,Commander
//go:generate errorgen
import (
"context"

View File

@ -1,6 +1,6 @@
package dispatcher
//go:generate go run $GOPATH/src/v2ray.com/core/common/errors/errorgen/main.go -pkg impl -path App,Dispatcher,Default
//go:generate errorgen
import (
"context"

View File

@ -2,7 +2,7 @@ package dispatcher
import "context"
//go:generate go run $GOPATH/src/v2ray.com/core/common/errors/errorgen/main.go -pkg dispatcher -path App,Dispatcher
//go:generate errorgen
type key int

View File

@ -1,4 +1,4 @@
// Package dns is an implementation of core.DNS feature.
package dns
//go:generate go run $GOPATH/src/v2ray.com/core/common/errors/errorgen/main.go -pkg dns -path App,DNS
//go:generate errorgen

View File

@ -1,6 +1,6 @@
package dns
//go:generate go run $GOPATH/src/v2ray.com/core/common/errors/errorgen/main.go -pkg dns -path App,DNS
//go:generate errorgen
import (
"context"

View File

@ -1,6 +1,6 @@
package command
//go:generate go run $GOPATH/src/v2ray.com/core/common/errors/errorgen/main.go -pkg command -path App,Log,Command
//go:generate errorgen
import (
"context"

View File

@ -1,6 +1,6 @@
package log
//go:generate go run $GOPATH/src/v2ray.com/core/common/errors/errorgen/main.go -pkg log -path App,Log
//go:generate errorgen
import (
"context"

View File

@ -1,4 +1,4 @@
// Package policy is an implementation of core.PolicyManager feature.
package policy
//go:generate go run $GOPATH/src/v2ray.com/core/common/errors/errorgen/main.go -pkg policy -path App,Policy
//go:generate errorgen

View File

@ -1,3 +1,3 @@
package command
//go:generate go run $GOPATH/src/v2ray.com/core/common/errors/errorgen/main.go -pkg command -path App,Proxyman,Command
//go:generate errorgen

View File

@ -1,6 +1,6 @@
package inbound
//go:generate go run $GOPATH/src/v2ray.com/core/common/errors/errorgen/main.go -pkg inbound -path App,Proxyman,Inbound
//go:generate errorgen
import (
"context"

View File

@ -1,6 +1,6 @@
package mux
//go:generate go run $GOPATH/src/v2ray.com/core/common/errors/errorgen/main.go -pkg mux -path App,Proxyman,Mux
//go:generate errorgen
import (
"context"

View File

@ -1,6 +1,6 @@
package outbound
//go:generate go run $GOPATH/src/v2ray.com/core/common/errors/errorgen/main.go -pkg outbound -path App,Proxyman,Outbound
//go:generate errorgen
import (
"context"

View File

@ -1,6 +1,6 @@
package router
//go:generate go run $GOPATH/src/v2ray.com/core/common/errors/errorgen/main.go -pkg router -path App,Router
//go:generate errorgen
import (
"context"

View File

@ -1,6 +1,6 @@
package command
//go:generate go run $GOPATH/src/v2ray.com/core/common/errors/errorgen/main.go -pkg command -path App,Stats,Command
//go:generate errorgen
import (
"context"

View File

@ -1,6 +1,6 @@
package stats
//go:generate go run $GOPATH/src/v2ray.com/core/common/errors/errorgen/main.go -pkg stats -path App,Stats
//go:generate errorgen
import (
"context"

View File

@ -1,4 +1,4 @@
// Package buf provides a light-weight memory allocation mechanism.
package buf // import "v2ray.com/core/common/buf"
//go:generate go run $GOPATH/src/v2ray.com/core/common/errors/errorgen/main.go -pkg buf -path Buf
//go:generate errorgen

View File

@ -2,7 +2,7 @@
// See each sub-package for detail.
package common
//go:generate go run $GOPATH/src/v2ray.com/core/common/errors/errorgen/main.go -pkg common -path Common
//go:generate errorgen
// Must panics if err is not nil.
func Must(err error) {

View File

@ -1,4 +1,4 @@
// Package crypto provides common crypto libraries for V2Ray.
package crypto // import "v2ray.com/core/common/crypto"
//go:generate go run $GOPATH/src/v2ray.com/core/common/errors/errorgen/main.go -pkg crypto -path Crypto
//go:generate errorgen

View File

@ -1,4 +1,4 @@
// Package net is a drop-in replacement to Golang's net package, with some more functionalities.
package net // import "v2ray.com/core/common/net"
//go:generate go run $GOPATH/src/v2ray.com/core/common/errors/errorgen/main.go -pkg net -path Net
//go:generate errorgen

View File

@ -9,7 +9,7 @@ import (
"v2ray.com/core/common/platform"
)
//go:generate go run $GOPATH/src/v2ray.com/core/common/errors/errorgen/main.go -pkg ctlcmd -path Command,Platform,CtlCmd
//go:generate errorgen
func Run(args []string, input io.Reader) (buf.MultiBuffer, error) {
v2ctl := platform.GetToolLocation("v2ctl")

View File

@ -11,7 +11,7 @@ import (
"v2ray.com/core/common"
)
//go:generate go run $GOPATH/src/v2ray.com/core/common/errors/errorgen/main.go -pkg cert -path Protocol,TLS,Cert
//go:generate errorgen
type Certificate struct {
// Cerificate in ASN.1 DER format

View File

@ -1,6 +1,6 @@
package retry // import "v2ray.com/core/common/retry"
//go:generate go run $GOPATH/src/v2ray.com/core/common/errors/errorgen/main.go -pkg retry -path Retry
//go:generate errorgen
import (
"time"

View File

@ -9,7 +9,8 @@
// connections.
package core
//go:generate go run $GOPATH/src/v2ray.com/core/common/errors/errorgen/main.go -pkg core -path Core
//go:generate go install "v2ray.com/core/common/errors/errorgen"
//go:generate errorgen
import (
"v2ray.com/core/common/serial"

View File

@ -10,7 +10,7 @@ import (
"v2ray.com/core/main/confloader"
)
//go:generate go run $GOPATH/src/v2ray.com/core/common/errors/errorgen/main.go -pkg external -path Main,ConfLoader,External
//go:generate errorgen
type ClosableMultiBuffer struct {
buf.MultiBuffer

View File

@ -1,6 +1,6 @@
package json
//go:generate go run $GOPATH/src/v2ray.com/core/common/errors/errorgen/main.go -pkg json -path Main,Json
//go:generate errorgen
import (
"io"

View File

@ -1,6 +1,6 @@
package main
//go:generate go run $GOPATH/src/v2ray.com/core/common/errors/errorgen/main.go -pkg main -path Main
//go:generate errorgen
import (
"flag"

View File

@ -1,7 +1,7 @@
// Package blackhole is an outbound handler that blocks all connections.
package blackhole
//go:generate go run $GOPATH/src/v2ray.com/core/common/errors/errorgen/main.go -pkg blackhole -path Proxy,Blackhole
//go:generate errorgen
import (
"context"

View File

@ -1,6 +1,6 @@
package dokodemo
//go:generate go run $GOPATH/src/v2ray.com/core/common/errors/errorgen/main.go -pkg dokodemo -path Proxy,Dokodemo
//go:generate errorgen
import (
"context"

View File

@ -1,6 +1,6 @@
package freedom
//go:generate go run $GOPATH/src/v2ray.com/core/common/errors/errorgen/main.go -pkg freedom -path Proxy,Freedom
//go:generate errorgen
import (
"context"

View File

@ -1,3 +1,3 @@
package http
//go:generate go run $GOPATH/src/v2ray.com/core/common/errors/errorgen/main.go -pkg http -path Proxy,HTTP
//go:generate errorgen

View File

@ -1,3 +1,3 @@
package mtproto
//go:generate go run $GOPATH/src/v2ray.com/core/common/errors/errorgen/main.go -pkg mtproto -path Proxy,MTProto
//go:generate errorgen

View File

@ -13,4 +13,4 @@
// R.I.P Shadowsocks
package shadowsocks
//go:generate go run $GOPATH/src/v2ray.com/core/common/errors/errorgen/main.go -pkg shadowsocks -path Proxy,Shadowsocks
//go:generate errorgen

View File

@ -1,4 +1,4 @@
// Package socks provides implements of Socks protocol 4, 4a and 5.
package socks
//go:generate go run $GOPATH/src/v2ray.com/core/common/errors/errorgen/main.go -pkg socks -path Proxy,Socks
//go:generate errorgen

View File

@ -5,7 +5,7 @@ import (
"v2ray.com/core/common/protocol"
)
//go:generate go run $GOPATH/src/v2ray.com/core/common/errors/errorgen/main.go -pkg encoding -path Proxy,VMess,Encoding
//go:generate errorgen
const (
Version = byte(1)

View File

@ -1,6 +1,6 @@
package inbound
//go:generate go run $GOPATH/src/v2ray.com/core/common/errors/errorgen/main.go -pkg inbound -path Proxy,VMess,Inbound
//go:generate errorgen
import (
"context"

View File

@ -1,6 +1,6 @@
package outbound
//go:generate go run $GOPATH/src/v2ray.com/core/common/errors/errorgen/main.go -pkg outbound -path Proxy,VMess,Outbound
//go:generate errorgen
import (
"context"

View File

@ -5,7 +5,7 @@
// clients with 'socks' for proxying.
package vmess
//go:generate go run $GOPATH/src/v2ray.com/core/common/errors/errorgen/main.go -pkg vmess -path Proxy,VMess
//go:generate errorgen
import (
"strings"

View File

@ -1,3 +1,3 @@
package domainsocket
//go:generate go run $GOPATH/src/v2ray.com/core/common/errors/errorgen/main.go -pkg domainsocket -path Transport,Internet,DomainSocket
//go:generate errorgen

View File

@ -1,6 +1,6 @@
package http
//go:generate go run $GOPATH/src/v2ray.com/core/common/errors/errorgen/main.go -pkg http -path Transport,Internet,Headers,HTTP
//go:generate errorgen
import (
"bytes"

View File

@ -1,3 +1,3 @@
package http
//go:generate go run $GOPATH/src/v2ray.com/core/common/errors/errorgen/main.go -pkg http -path Transport,Internet,HTTP
//go:generate errorgen

View File

@ -1,3 +1,3 @@
package internet
//go:generate go run $GOPATH/src/v2ray.com/core/common/errors/errorgen/main.go -pkg internet -path Transport,Internet
//go:generate errorgen

View File

@ -5,4 +5,4 @@
// xtaci@github for translating to Golang
package kcp
//go:generate go run $GOPATH/src/v2ray.com/core/common/errors/errorgen/main.go -pkg kcp -path Transport,Internet,mKCP
//go:generate errorgen

View File

@ -1,3 +1,3 @@
package tcp
//go:generate go run $GOPATH/src/v2ray.com/core/common/errors/errorgen/main.go -pkg tcp -path Transport,Internet,TCP
//go:generate errorgen

View File

@ -7,7 +7,7 @@ import (
"v2ray.com/core/common/net"
)
//go:generate go run $GOPATH/src/v2ray.com/core/common/errors/errorgen/main.go -pkg tls -path Transport,Internet,TLS
//go:generate errorgen
var (
_ buf.Writer = (*conn)(nil)

View File

@ -1,5 +1,5 @@
package udp
//go:generate go run $GOPATH/src/v2ray.com/core/common/errors/errorgen/main.go -pkg udp -path Transport,Internet,UDP
//go:generate errorgen
const protocolName = "udp"

View File

@ -4,4 +4,4 @@ Websocket transport implements an HTTP(S) compliable, surveillance proof transpo
*/
package websocket
//go:generate go run $GOPATH/src/v2ray.com/core/common/errors/errorgen/main.go -pkg websocket -path Transport,Internet,WebSocket
//go:generate errorgen