diff --git a/client/client_streamx.go b/client/client_streamx.go index 60d1e767bf..6a0fcb769c 100644 --- a/client/client_streamx.go +++ b/client/client_streamx.go @@ -1,3 +1,19 @@ +/* + * Copyright 2024 CloudWeGo Authors + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package client import ( diff --git a/client/streamxclient/client.go b/client/streamxclient/client.go index 5bd52d8888..09f52707b3 100644 --- a/client/streamxclient/client.go +++ b/client/streamxclient/client.go @@ -1,3 +1,19 @@ +/* + * Copyright 2024 CloudWeGo Authors + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package streamxclient import ( diff --git a/client/streamxclient/client_gen.go b/client/streamxclient/client_gen.go index eb1e68f530..001d03c149 100644 --- a/client/streamxclient/client_gen.go +++ b/client/streamxclient/client_gen.go @@ -1,3 +1,19 @@ +/* + * Copyright 2024 CloudWeGo Authors + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package streamxclient import ( diff --git a/client/streamxclient/client_option.go b/client/streamxclient/client_option.go index bcc101dc63..0534b305a3 100644 --- a/client/streamxclient/client_option.go +++ b/client/streamxclient/client_option.go @@ -1,3 +1,19 @@ +/* + * Copyright 2024 CloudWeGo Authors + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package streamxclient import ( diff --git a/client/streamxclient/streamxcallopt/call_option.go b/client/streamxclient/streamxcallopt/call_option.go index c4acd957fd..de48a90ac9 100644 --- a/client/streamxclient/streamxcallopt/call_option.go +++ b/client/streamxclient/streamxcallopt/call_option.go @@ -1,3 +1,19 @@ +/* + * Copyright 2024 CloudWeGo Authors + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package streamxcallopt import ( diff --git a/pkg/streamx/client_options.go b/pkg/streamx/client_options.go index 9beb142357..935ad0d61b 100644 --- a/pkg/streamx/client_options.go +++ b/pkg/streamx/client_options.go @@ -1,3 +1,19 @@ +/* + * Copyright 2024 CloudWeGo Authors + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package streamx import ( diff --git a/pkg/streamx/header_trailer.go b/pkg/streamx/header_trailer.go index 1c5372a985..50c2bbeaef 100644 --- a/pkg/streamx/header_trailer.go +++ b/pkg/streamx/header_trailer.go @@ -1,3 +1,19 @@ +/* + * Copyright 2024 CloudWeGo Authors + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package streamx type ( diff --git a/pkg/streamx/provider/ttstream/container/object_pool.go b/pkg/streamx/provider/ttstream/container/object_pool.go index 26fdc26978..28aba9e159 100644 --- a/pkg/streamx/provider/ttstream/container/object_pool.go +++ b/pkg/streamx/provider/ttstream/container/object_pool.go @@ -1,3 +1,19 @@ +/* + * Copyright 2024 CloudWeGo Authors + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package container import ( diff --git a/pkg/streamx/provider/ttstream/container/stack_test.go b/pkg/streamx/provider/ttstream/container/stack_test.go index 420bd636b5..2a5eee2eac 100644 --- a/pkg/streamx/provider/ttstream/container/stack_test.go +++ b/pkg/streamx/provider/ttstream/container/stack_test.go @@ -1,3 +1,19 @@ +/* + * Copyright 2024 CloudWeGo Authors + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package container import ( diff --git a/pkg/streamx/provider/ttstream/exception.go b/pkg/streamx/provider/ttstream/exception.go index 5c650784b2..17f51b157d 100644 --- a/pkg/streamx/provider/ttstream/exception.go +++ b/pkg/streamx/provider/ttstream/exception.go @@ -1,3 +1,19 @@ +/* + * Copyright 2024 CloudWeGo Authors + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package ttstream type tException interface { diff --git a/pkg/streamx/stream_middleware_internal.go b/pkg/streamx/stream_middleware_internal.go index ab2d9f35f0..d06d7d491d 100644 --- a/pkg/streamx/stream_middleware_internal.go +++ b/pkg/streamx/stream_middleware_internal.go @@ -1,3 +1,19 @@ +/* + * Copyright 2024 CloudWeGo Authors + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package streamx import ( diff --git a/server/streamxserver/server.go b/server/streamxserver/server.go index 890040e190..adfeb73432 100644 --- a/server/streamxserver/server.go +++ b/server/streamxserver/server.go @@ -1,3 +1,19 @@ +/* + * Copyright 2024 CloudWeGo Authors + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package streamxserver import ( diff --git a/server/streamxserver/server_gen.go b/server/streamxserver/server_gen.go index c417b0cff3..c92c8692b9 100644 --- a/server/streamxserver/server_gen.go +++ b/server/streamxserver/server_gen.go @@ -1,3 +1,19 @@ +/* + * Copyright 2024 CloudWeGo Authors + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package streamxserver import ( diff --git a/server/streamxserver/server_option.go b/server/streamxserver/server_option.go index e6e04415b5..6869dcc8b5 100644 --- a/server/streamxserver/server_option.go +++ b/server/streamxserver/server_option.go @@ -1,3 +1,19 @@ +/* + * Copyright 2024 CloudWeGo Authors + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package streamxserver import ( diff --git a/tool/internal_pkg/tpl/streamx/client.go b/tool/internal_pkg/tpl/streamx/client.go index f88fce814e..2a5e88ca2b 100644 --- a/tool/internal_pkg/tpl/streamx/client.go +++ b/tool/internal_pkg/tpl/streamx/client.go @@ -1,3 +1,19 @@ +/* + * Copyright 2024 CloudWeGo Authors + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package streamx var ClientTpl = `// Code generated by Kitex {{.Version}}. DO NOT EDIT. diff --git a/tool/internal_pkg/tpl/streamx/handler.method.go b/tool/internal_pkg/tpl/streamx/handler.method.go index 0224237e3d..acbbdd7571 100644 --- a/tool/internal_pkg/tpl/streamx/handler.method.go +++ b/tool/internal_pkg/tpl/streamx/handler.method.go @@ -1,3 +1,19 @@ +/* + * Copyright 2024 CloudWeGo Authors + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package streamx var HandlerMethodsTpl = `{{define "HandlerMethod"}} diff --git a/tool/internal_pkg/tpl/streamx/server.go b/tool/internal_pkg/tpl/streamx/server.go index 217c7b3fa1..08eaa64483 100644 --- a/tool/internal_pkg/tpl/streamx/server.go +++ b/tool/internal_pkg/tpl/streamx/server.go @@ -1,3 +1,19 @@ +/* + * Copyright 2024 CloudWeGo Authors + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package streamx var ServerTpl = `// Code generated by Kitex {{.Version}}. DO NOT EDIT. diff --git a/tool/internal_pkg/tpl/streamx/service.go b/tool/internal_pkg/tpl/streamx/service.go index cbd727d5d0..d9bad47462 100644 --- a/tool/internal_pkg/tpl/streamx/service.go +++ b/tool/internal_pkg/tpl/streamx/service.go @@ -1,3 +1,19 @@ +/* + * Copyright 2024 CloudWeGo Authors + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package streamx var ServiceTpl = `// Code generated by Kitex {{.Version}}. DO NOT EDIT.