Skip to content

Commit

Permalink
add Copyright and fix review
Browse files Browse the repository at this point in the history
Signed-off-by: zhangchao <[email protected]>
  • Loading branch information
Taction committed Jul 18, 2023
1 parent b882341 commit b668307
Show file tree
Hide file tree
Showing 8 changed files with 105 additions and 1 deletion.
13 changes: 13 additions & 0 deletions middleware/http/wasm/benchmark_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,16 @@
/*
Copyright 2023 The Dapr 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 wasm

import (
Expand Down
13 changes: 13 additions & 0 deletions middleware/http/wasm/example/router.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,16 @@
/*
Copyright 2023 The Dapr 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 main

import (
Expand Down
15 changes: 14 additions & 1 deletion middleware/http/wasm/httpwasm.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,16 @@
/*
Copyright 2023 The Dapr 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 wasm

import (
Expand All @@ -23,7 +36,7 @@ type middleware struct {
}

type Metadata struct {
// GuestConfig is the guest configuration, assigned during instantiation by handler.GuestConfig.
// GuestConfig is an optional configuration passed to WASM guests.
GuestConfig string `mapstructure:"guestConfig"`
}

Expand Down
13 changes: 13 additions & 0 deletions middleware/http/wasm/httpwasm_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,16 @@
/*
Copyright 2023 The Dapr 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 wasm

import (
Expand Down
13 changes: 13 additions & 0 deletions middleware/http/wasm/internal/e2e-guests/config/main.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,16 @@
/*
Copyright 2023 The Dapr 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 main ensures tests can prove logging or stdio isn't missed, both
// during initialization (main) and request (rewrite).
package main
Expand Down
13 changes: 13 additions & 0 deletions middleware/http/wasm/internal/e2e-guests/output/main.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,16 @@
/*
Copyright 2023 The Dapr 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 main ensures tests can prove logging or stdio isn't missed, both
// during initialization (main) and request (rewrite).
package main
Expand Down
13 changes: 13 additions & 0 deletions middleware/http/wasm/internal/e2e-guests/rewrite/main.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,16 @@
/*
Copyright 2023 The Dapr 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 main

import (
Expand Down
13 changes: 13 additions & 0 deletions middleware/http/wasm/internal/e2e_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,16 @@
/*
Copyright 2023 The Dapr 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 internal_test

import (
Expand Down

0 comments on commit b668307

Please sign in to comment.