chrono

package
v0.0.0-...-051a9c2 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

  • Copyright 2017 - 2019 KB Kontrakt LLC - All Rights Reserved. *

  • 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. *

  • Copyright 2017 - 2019 KB Kontrakt LLC - All Rights Reserved. *

  • 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 chrono is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DateTime

type DateTime struct {
	time.Time
}

DateTime .

func DateTimeFromStr

func DateTimeFromStr(str string) DateTime

DateTimeFromStr .

func DateTimeFromStub

func DateTimeFromStub(stub shim.ChaincodeStubInterface) (*DateTime, error)

DateTimeFromStub .

func DateTimeFromTimestamp

func DateTimeFromTimestamp(timestamp *timestamp.Timestamp) DateTime

DateTimeFromTimestamp .

func ParseDateTime

func ParseDateTime(str string) (*DateTime, error)

ParseDateTime .

func (*DateTime) MarshalJSON

func (dateTime *DateTime) MarshalJSON() ([]byte, error)

MarshalJSON .

func (*DateTime) UnmarshalJSON

func (dateTime *DateTime) UnmarshalJSON(buf []byte) error

UnmarshalJSON .

type MockTimeService

type MockTimeService struct {
	// contains filtered or unexported fields
}

MockTimeService is a mock of TimeService interface

func NewMockTimeService

func NewMockTimeService(ctrl *gomock.Controller) *MockTimeService

NewMockTimeService creates a new mock instance

func (*MockTimeService) EXPECT

EXPECT returns an object that allows the caller to indicate expected use

func (*MockTimeService) NowDateTime

func (m *MockTimeService) NowDateTime() (DateTime, error)

NowDateTime mocks base method

type MockTimeServiceMockRecorder

type MockTimeServiceMockRecorder struct {
	// contains filtered or unexported fields
}

MockTimeServiceMockRecorder is the mock recorder for MockTimeService

func (*MockTimeServiceMockRecorder) NowDateTime

func (mr *MockTimeServiceMockRecorder) NowDateTime() *gomock.Call

NowDateTime indicates an expected call of NowDateTime

type TimeService

type TimeService interface {
	NowDateTime() (DateTime, error)
}

TimeService .

func NewTimeServiceImpl

func NewTimeServiceImpl(stub shim.ChaincodeStubInterface) TimeService

NewTimeServiceImpl creates default implementation

Jump to

Keyboard shortcuts

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