types

package
v0.0.0-...-fa6a194 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2018 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

Package types provides the enum like type.

Copyright Nobuyuki Matsui<nobuyuki.matsui>.

SPDX-License-Identifier: Apache-2.0

Package types provides the enum like type.

Copyright Nobuyuki Matsui<nobuyuki.matsui>.

SPDX-License-Identifier: Apache-2.0

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EventType

type EventType int

EventType : event type

const (
	UnKnownEvent EventType = iota
	DepositEvent
	RemitEvent
	WithdrawEvent
)

concrete EventType

func (EventType) MarshalJSON

func (t EventType) MarshalJSON() ([]byte, error)

MarshalJSON : Marshaler interface of ObjectType

func (EventType) String

func (t EventType) String() string

String : Striner interface

func (*EventType) UnmarshalJSON

func (t *EventType) UnmarshalJSON(data []byte) error

UnmarshalJSON : Marshaler interface of ObjectType

type ModelType

type ModelType int

ModelType : model type

const (
	UnKnownModel ModelType = iota
	AccountModel
	EventModel
)

concrete ModelType

func (ModelType) MarshalJSON

func (t ModelType) MarshalJSON() ([]byte, error)

MarshalJSON : Marshaler interface

func (ModelType) String

func (t ModelType) String() string

String : Stringer interface

func (*ModelType) UnmarshalJSON

func (t *ModelType) UnmarshalJSON(data []byte) error

UnmarshalJSON : Marshaler interface

Jump to

Keyboard shortcuts

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