operation

package
v0.0.0-...-0fb43f7 Latest Latest
Warning

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

Go to latest
Published: May 3, 2022 License: AGPL-3.0 Imports: 1 Imported by: 0

README

operation - working with information about operations for Front

Package for working with information about operations for Front

import to progect:
import "github.com/nik19ta/go_server/api/operation"
Funcs:
  • Record(IsDone bool, map[string]interface{}) return Operation - recording a new operation
use stract Operation:
type Operation struct {
	IsDone bool
	Answer map[string]interface{}
}
Operation methods:
  • Send() return []byte, bool - returns a struct converted to Json

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Operation

type Operation struct {
	IsDone bool
	Answer map[string]interface{}
}

Operation - Ответ приходящий на сервер

func Record

func Record(IsDone bool, Answer map[string]interface{}) Operation

Record - --> Записывает операцию

func (*Operation) Send

func (o *Operation) Send() ([]byte, bool)

Send - --> возвращает структуру преобразованную в Json

Jump to

Keyboard shortcuts

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