Browse Source

Cache blocks progress

Vova Tkach 5 years ago
parent
commit
4138f0a631
6 changed files with 85 additions and 12 deletions
  1. 17 0
      cblocks/block1.go
  2. 17 0
      cblocks/block2.go
  3. 17 0
      cblocks/block3.go
  4. 17 0
      cblocks/block4.go
  5. 17 0
      cblocks/block5.go
  6. 0 12
      cblocks/cblocks.go

+ 17 - 0
cblocks/block1.go

@@ -0,0 +1,17 @@
+package cblocks
+
+import (
+	"html/template"
+)
+
+func (this *CacheBlocks) ResetBlock1(host string) {
+	//
+}
+
+func (this *CacheBlocks) GetBlock1(host, url string) (template.HTML, bool) {
+	return template.HTML(""), false
+}
+
+func (this *CacheBlocks) SetBlock1(host, url string, data template.HTML) {
+	//
+}

+ 17 - 0
cblocks/block2.go

@@ -0,0 +1,17 @@
+package cblocks
+
+import (
+	"html/template"
+)
+
+func (this *CacheBlocks) ResetBlock2(host string) {
+	//
+}
+
+func (this *CacheBlocks) GetBlock2(host, url string) (template.HTML, bool) {
+	return template.HTML(""), false
+}
+
+func (this *CacheBlocks) SetBlock2(host, url string, data template.HTML) {
+	//
+}

+ 17 - 0
cblocks/block3.go

@@ -0,0 +1,17 @@
+package cblocks
+
+import (
+	"html/template"
+)
+
+func (this *CacheBlocks) ResetBlock3(host string) {
+	//
+}
+
+func (this *CacheBlocks) GetBlock3(host, url string) (template.HTML, bool) {
+	return template.HTML(""), false
+}
+
+func (this *CacheBlocks) SetBlock3(host, url string, data template.HTML) {
+	//
+}

+ 17 - 0
cblocks/block4.go

@@ -0,0 +1,17 @@
+package cblocks
+
+import (
+	"html/template"
+)
+
+func (this *CacheBlocks) ResetBlock4(host string) {
+	//
+}
+
+func (this *CacheBlocks) GetBlock4(host, url string) (template.HTML, bool) {
+	return template.HTML(""), false
+}
+
+func (this *CacheBlocks) SetBlock4(host, url string, data template.HTML) {
+	//
+}

+ 17 - 0
cblocks/block5.go

@@ -0,0 +1,17 @@
+package cblocks
+
+import (
+	"html/template"
+)
+
+func (this *CacheBlocks) ResetBlock5(host string) {
+	//
+}
+
+func (this *CacheBlocks) GetBlock5(host, url string) (template.HTML, bool) {
+	return template.HTML(""), false
+}
+
+func (this *CacheBlocks) SetBlock5(host, url string, data template.HTML) {
+	//
+}

+ 0 - 12
cblocks/cblocks.go

@@ -19,15 +19,3 @@ type CacheBlocks struct {
 func New() *CacheBlocks {
 	return &CacheBlocks{}
 }
-
-func (this *CacheBlocks) ResetBlock1(host string) {
-	//
-}
-
-func (this *CacheBlocks) GetBlock1(host, url string) (template.HTML, bool) {
-	return template.HTML(""), false
-}
-
-func (this *CacheBlocks) SetBlock1(host, url string, data template.HTML) {
-	//
-}